Results 1 to 2 of 2

Thread: CSS style sheet with PHP?

  1. #1
    Join Date
    Oct 2010
    Posts
    2

    CSS style sheet with PHP?

    Hey guys, I'm new to this forum, but not entirely new to web design. I've had a few pages up in the past, but nothing really for making money. I've taken on a larger project now...

    Some quick information:
    I have a website who's main feature is a search bar. Clients will enter their query into the search bar, then be directed to a new page with various database elements being displayed accordingly. Obviously, I need this page to be dynamic, as it has to display multiple different results each time.

    I'd like to retain the color scheme and borders static on all pages, while having the information in the center be dynamic. Would I do an HTML page, with a CSS style sheet, and PHP for the dynamic information? Or would an entirely PHP page be best, with a style sheet. I'd like to keep as much as possible HTML for SEO

  2. #2
    Join Date
    May 2010
    Location
    College Station, TX
    Posts
    216
    You would do a standard HTML page with CSS, but in the middle, smack the PHP code your using to display the dynamic content. For example

    Code:
    <html>
    
    <head>
      <!-- head stuff -->
    </head>
    
    <body>
      <!-- header -->
      <!-- menu -->
      <!-- left column -->
      <div class="main-content">
        <?php
          // php code to output the dynamic content here
        ?>
      </div>
      <!-- footer -->
    </body>
    </html>
    All web designers hate the internet. If I spend all day making/updating/looking at websites, why the hell would I want to deal with it outside of work?

Similar Threads

  1. CSS Style Sheet Help
    By MaX ReaLiTy in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 09 Nov 2005, 07:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •