SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: Question on divs and sub-divs?
-
Jul 15, 2006, 15:55 #1
- 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>
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;}
-
Jul 15, 2006, 16:00 #2
#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.
-
Jul 15, 2006, 16:05 #3
- 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
-
Jul 15, 2006, 16:08 #4
- 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?
-
Jul 15, 2006, 16:14 #5
- 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