|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Don't understand this CSS
okay, so i was trying to accomplish the same thing as the website www.alistapart.com I wanted the same thing for the links up at the top, i achieved this by looking at this websites CSS file.
this was teh relevant CSS code: PHP Code:
lol so it accomplishes what im looking for but i don't understand WHY it does this. Any help would be great! thanks. Last edited by chrisab508 : February 3rd, 2004 at 07:47 PM. |
|
#2
|
|||
|
|||
|
what i mainly don't understand about it is: the links are typed in as a list in the HTML, so how does this get them horizontal?
thanks. |
|
#3
|
|||
|
|||
|
Try reading the alistapart website some more. It's probably the worlds best one-stop-shop for webdesign tutorials & articles and a great way to start learning CSS.
They actually have an entire article (called 'taming lists') that explains in detail what the above css does... Read my friend... read.. |
|
#4
|
||||
|
||||
|
they are using FLOAT: left;
on the li-element to get them on one line you can achieve a similar effect by using display:inline on the li-elements, then they use display:block on the anchor elements, so that they can set width and height to those elements. http://www.alistapart.com/articles/taminglists/ |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Don't understand this CSS |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|