SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist jkh1978's Avatar
    Join Date
    May 2001
    Location
    Northern Virginia
    Posts
    445
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    changes in different div

    I am using <div> to set order to my website... I once read how to set the CSS to handle the tags differently in each div, but i cant find that tutorial... can anyone help?

  2. #2
    .net install meltdown
    Join Date
    May 2001
    Location
    View Ridge
    Posts
    692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not real clear on what you're trying to do.

    You could assign a class or id to the <div> & set the attributes that way. Class can be assigned to mulitple tags whereas id can only be applied to one.

    You could also specify behaviours for certain tags within the div:

    Code:
    #leftcontent p
      {
      background:#ffccff;
      }
    This would apply the background:#ffccff; to all <p> tags with the <div id="leftcontent">.

    Not sure if this is what your after. Can you be a little more specific?


Bookmarks

Posting Permissions

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