SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Jun 2006
    Posts
    139
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question on divs and sub-divs?

    If you look at the followiing code it is a div for a navbar. But can divs be made out the "a" and "b"?

    HTML Code:
    <div id="navbar">
    <a href="/myprofile">my profile</a><b>|</b><a href="/logout">logout</a><b>|</b><a href="/top10">
    top 10</a><b>|</b><a href="/search">search</a>
    <b>|</b><a href="contact">contact us</a>
    </div>
    I am following a book by Eric Meyer and he uses code like this, but he never created #navbar a, #navbar b he just created them from the actual #navbar

    Code:
    #navbar {position:absolute; top: 44px; right: 0;
    padding:2px 0 2px 32px; white-space: nowrap; 
    background:#F0DFB4 url(tab-curve.gif) bottom left no-repeat;}
    #navbar b {display: none;}
    #navbar a {text-decoration:none; color:#000000;}

  2. #2
    SitePoint Member aLFaDaRK's Avatar
    Join Date
    Jul 2006
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    #navbar is referring to the div itself.

    #navbar b is referring to any <b> tags inside of the div.

    #navbar a is referring to any <a> tags inside of the div.

    Hope that helps.

  3. #3
    Non-Member
    Join Date
    Jan 2005
    Location
    Netherlands
    Posts
    4,300
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello

    ?
    #navbar a , the A tags in #navbar
    #navbar b , the B tags in #navbar

  4. #4
    SitePoint Zealot
    Join Date
    Jun 2006
    Posts
    139
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys thats kind of what I meant. I thought so anything can be a div if it is in html markup then?

  5. #5
    Non-Member
    Join Date
    Jan 2005
    Location
    Netherlands
    Posts
    4,300
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello

    #navbar b {display: none;} = don't show all the B tag in #navbar, b= <b>the B tags gets you bold text</b>

    ? can be a Div , Block level you mean ?


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
  •