ThunderAI Posted December 17, 2006 Share Posted December 17, 2006 Please help, I cant get anything to work, so no code, sorry.I am trying to get about 8 columns line up using a combination of DIV tags and CSS style rather then using tables and TD's, but I cant get it to work worht a darn.Is there anywhere that I can see an example of this or someone crank out a quick example of what it would look like? Quote Link to comment https://forums.phpfreaks.com/topic/30926-displaying-php-mysql-result-row-only-with-css-no-tables/ Share on other sites More sharing options...
wildteen88 Posted December 17, 2006 Share Posted December 17, 2006 What data are you showing? If it is some form of data such as unique hits your site gets then you can just use tables. Tables are fine to be used to display tabular data -but not for layouts of a website.However if you want to do it in divs then just use 8 divs, that all float left and have the same width. Quote Link to comment https://forums.phpfreaks.com/topic/30926-displaying-php-mysql-result-row-only-with-css-no-tables/#findComment-142928 Share on other sites More sharing options...
dbrimlow Posted December 20, 2006 Share Posted December 20, 2006 It isn't easy, but it can be done. The only problem is that you have to use a fixed width/height layout. It is rough when using a "liquid/flexible" layout.Here are two examples I use for displaying a search results (should be fine in all browsers incl. IE 5x for mac and win, IE 5.5, IE 6.0) although my assistant removed the <html> tags, I just noticed, on quite a few of the pages ... I have a lot of copy pastes to do!!! :http://manhattanlofts.com/sales/The next one is a work in progress that is giving me fits, the main site is liquid, the search results are fixed (different style sheet) and the product page is liquid (click the photo for the product page):http://www.regisresidential.com/apartments.html (do a search):It really is not very stable unless you get it just right. Quote Link to comment https://forums.phpfreaks.com/topic/30926-displaying-php-mysql-result-row-only-with-css-no-tables/#findComment-144839 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.