
|
markschneg rated 21 months ago- From the page: "The premise is simple and basically just involves a widthless float that is placed 50% from the left using position:relative. The nested inner element is then reversed and a negative relative position of 50% (-50%) is applied. This has the effect of placing the element in the ce...
|
|
2 Reviews
-
-
 ToreadorVampire rated 2 months ago- I always forget the specifics of this technique - this page is a good reminder. Centre floated elements like nav lists and buttons etc.
 markschneg rated 21 months ago- From the page: "The premise is simple and basically just involves a widthless float that is placed 50% from the left using position:relative. The nested inner element is then reversed and a negative relative position of 50% (-50%) is applied. This has the effect of placing the element in the center. Relative positioning maintains the flow and allows other content to flow underneath."
|