Tuesday, August 25, 2009

Display property

to create a menu system
can use the display element to manipulate
eg
id id='nav'
then in css
#nav li {
display:inline;
}
that will put the ordered list next to each other
the listed items are gone - firefox removes them, but not all browswers do.
list-style:none; will remove the ol (1234 etc)

b element as a block element will take up the whole line. display:block
p elements to display:none;
this value is a great property for pop ups etc.. or hide elements on screen until printed like page title.

No comments:

Post a Comment