Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Dec 2008
    Posts
    52
    Member #
    17852
    Here's my site - http://www.ruesterprod.com

    Here's the thing on my home page, I have that image that I made that extends behind the nav sidebar. I am not sure I am going to put images on the other pages, so for now I would like to color the background of the sidebar to separate it from the maincontent area.

    BUT if I turn on the BG color of the side bar, it will also be colored on the home page, covering the image, is there a way to use span, or something to essentially "turn off" the css just for the home page...

    or are there any suggestions on how I could dress up my other pages?

    Thanks all,

    Aza

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    If you know some PHP you could specifically control what
    appears on each page, dynamically. It looks like you do websites,
    so you probably know some PHP?

    Describe how you code your sites ... by hand, or with a WYSIWYG editor?


  4. #3
    Junior Member WebPrezentacija's Avatar
    Join Date
    Jul 2009
    Location
    Novi Sad, Serbia
    Posts
    25
    Member #
    19405
    Liked
    1 times
    Ruester,

    No need to turn off the css just for the home page. Create another html tag div and and another css rule for the home page and thatís it.

  5. #4
    Member
    Join Date
    Dec 2008
    Posts
    52
    Member #
    17852
    I use Dreamweaver, but I should learn some php. I was thinking about creating a separate div for the home page side bar, I was hoping for another way so that changes I made to the sidebar wouldn't have to be done twice, thought I'd post to see...

    Thanks guys.

  6. #5
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    Aza,

    That's where PHP comes into play.

    You can create a separate "sidebar.php" file and include that on
    all other pages, so all pages use the same one. Then within "sidebar.php",
    you have scripting that controls what happens based on the page that
    is using it. Also a header and footer file could be included on each page.

    PHP Scripting:
    You can't really use a WYSIWYG editor, but you can use the text editor
    portion of DW (to manually code). Then, you use FTP to upload the changes
    to view the results (as you can't run PHP on your PC unless you have a server).

    You can also tell your webhost server to process your .html files as PHP ...
    so you may or may not need to change the file extensions to .php

    Most websites now are dynamic, meaning all pages are generated by scripting,
    either PHP, ASP, Perl, etc. This forum is a good example of PHP/MySQL.
    The page you're looking at now is all generated on-the-fly by PHP.


  7. #6
    Member
    Join Date
    Dec 2008
    Posts
    52
    Member #
    17852
    Okay, so it looks like I gotta start hittin' the books again. Here's a question. On top of HTML/CSS what does a well rounded web designer need to know. It looks like PHP is my next hurdle. Javascript has also been taunting me, what would you guys say?

    Thanks all, and where would I find some decent tutorials on the subject(s)?

  8. #7
    Senior Member Dorky's Avatar
    Join Date
    Jun 2009
    Location
    Destin Florida
    Posts
    1,430
    Member #
    19103
    Liked
    4 times
    html/xhtml css php

    google is your friend

    while($get_it !== true){ continue; }

  9. #8
    Senior Member Dorky's Avatar
    Join Date
    Jun 2009
    Location
    Destin Florida
    Posts
    1,430
    Member #
    19103
    Liked
    4 times

    while($get_it !== true){ continue; }

  10. #9
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    Aza ...

    As Dorky says, Google.

    For example, put the word PHP first, then what you're looking for.

    PHP date:
    http://www.google.com/search?q=php+date

    Or learn how to include files on each page, like a header, footer and content:
    http://www.google.com/search?hl=en&q...clude+tutorial

    Add the word tutorial if you want.

    You don't need to buy any books at all.
    If you have any friends that know PHP, some one-on-one help might be nice too.



Remove Ads

Posting Permissions

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

Search tags for this page

turn off css for a page or area

,

turn off css for one page

,

turn off css for single page

,

turn off span strong with css

Click on a term to search for related topics.
All times are GMT -6. The time now is 06:16 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com