Team:Tokyo-NoKoGen/css
From 2010.igem.org
(Difference between revisions)
Line 108: | Line 108: | ||
* html .menuminwidth1 { /* this allows IE5/6 to simulate min-width capability */ | * html .menuminwidth1 { /* this allows IE5/6 to simulate min-width capability */ | ||
position:relative; /* we can simulate a minimum width by creating a large */ | position:relative; /* we can simulate a minimum width by creating a large */ | ||
- | float: | + | float:center; /* border in this first div, then placing our content */ |
height: 1px; /* into a second nested div (see 2nd nested div next */ | height: 1px; /* into a second nested div (see 2nd nested div next */ | ||
border-left:560px solid #fff; /* CSS box-model borders are a fixed size */ | border-left:560px solid #fff; /* CSS box-model borders are a fixed size */ | ||
Line 125: | Line 125: | ||
.menu { | .menu { | ||
position:relative; /* establish a menu-relative positioning context */ | position:relative; /* establish a menu-relative positioning context */ | ||
- | float: | + | float:left; /* play nicely with others */ |
margin:0; | margin:0; | ||
padding:0; | padding:0; |
Revision as of 07:42, 19 October 2010