Jump to content

displaying php MYSQL result row only with CSS, no tables


ThunderAI

Recommended Posts

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?
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.