• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 16. Creating Horizontal Navigation > Styling the <ul> Element

Styling the <ul> Element

As discussed in Lesson 15, “Creating Vertical Navigation,” most browsers display HTML lists with left indentation. To remove this left indentation, set both padding-left and margin-left to 0 on the <ul> element as shown in Listing 16.3.

Listing 16.3. CSS Code Zeroing Margins and Padding

ul#navigation
{
    margin-left: 0;
					padding-left: 0;
}


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint