Guest si536 Posted December 16, 2005 Share Posted December 16, 2005 Greetings all. Interested in what experienced coders' opinions are on the best method to emulate a layout table with CSS. I've come across three different approaches: using the 'display' attribute, using 'float: left' and 'float: right' to create a three column layout, and using absolute positioning. Using positioning seems by far the best approach to me, but a number of sources seem to advocate the other two.Any thoughts would be welcomed - giving a site of mine an overhaul, and determined to put a bit of thought into it.Cheers, Si. Link to comment Share on other sites More sharing options...
F-Man Posted December 16, 2005 Share Posted December 16, 2005 Floating is better. Using the display property is if you want your elements to become a table, so it's not for creating a layout. Link to comment Share on other sites More sharing options...
applenerd Posted December 18, 2005 Share Posted December 18, 2005 I'm using postioning for my new website. Just postion <div> elements. It is working really well, and I have complete control over what my users will see. axel Link to comment Share on other sites More sharing options...
aspnetguy Posted December 18, 2005 Share Posted December 18, 2005 Positioning is great for lots of reason, mainly because it is easy, but you will spend the time you saved and then some trying to get ti to look the same in all browsers because each browser seems to add different margins to the page and other annoying things like that.If you are going to use positioning I would aim to have it look hte same in IE and firefox...that si about 95% of all browsers anyway!If you can do that you are doing well. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now