|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
|
|
||||
|
In some cases, tables do work best. However, from a purist standpoint, this is not a case for tabular data; so, it would not be a place for a table (if you aren't a purist, you can do what you want!)
However, have you considered creating three ID layers for your columns, instead of class styles? That way you can size and position the layers precisely for each individually. If you put an image larger than the column in any one of them, you are still going to have to deal with the overflow. |
|
|||
|
You could do like so :
<div class="contentPanel"> <div class="contentBlock"> </div> <div class="contentBlock"> </div> <div style="clear:both;"></div> <div class="contentBlock"> </div> <div class="contentBlock"> </div> <div style="clear:both;"></div> </div> Doing so would align the top of your left and right boxes, but would not enlarge the white box with less content in it. Nevertheless, I do not know if you will be able to implement this since you say you have no control on the dynamically generated code.... Hope this help! |
|
||||
|
This page will help you: CSS Equal Columns Height script
I would would scrap the pompous CSS layouts and use tables cause you'll end up with little issues between browsers... my two cents
__________________
Join free dating sites and meet single people without paying a penny. |
|
||||
|
Quote:
Here's to tables!! |
|
|||
|
Changed as I did not read the question fully, this should now work
Hopefully this below will help, I have taken out any font colour or type from the body or other elements so just left the basic sizing in place. This is set to provide three equal columns for a page width of 760px. Its easy to change to other widths just change the min-body width, contentwrapper, col1 to add up to the new width with the margins then the footer as well. Hopefully makes sense, just copy and paste and see how it looks. // doc title and head removed place your own in here <style type="text/css"> body { margin: 0px; padding: 0px; min-width: 760px; } #contentwrapper { margin: 0 auto; background-repeat: repeat-y; width: 760px; } #columntop { background-repeat: no-repeat; height: 12px; } .col1 { float: left; width: 250px; margin-right: 3px; } #columnbottom { clear: both; background-repeat: no-repeat; height: 12px; } .content { padding: 8px 20px; font-size: 0.75em; line-height: 1.5em; } .content p { margin: 6px 0px 12px; } #footer { margin: 0px auto; font-size: .7em; width: 760px; } #footercontent { padding: 12px 0; } .clearfloat { clear: both; height: 0; line-height: 0.0; font-size: 0; } </style> </head> <body> <div id="contentwrapper"> <div id="columntop"> </div> <div class="col1"> <div class="content"> <h1>One</h1> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque congue tristique eros. Nulla facilisi. Quisque sem mauris, ullamcorper ac, gravida id, mattis id, sapien. Nullam adipiscing enim dapibus felis. Fusce a nisi in odio pulvinar fringilla. Nunc blandit interdum metus. Duis leo nunc, sollicitudin ut, fermentum congue, pharetra eu, massa. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque congue tristique eros. Nulla </p> </div> </div> <div class="col1"> <div class="content"> <h1>Two</h1> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque congue tristique eros. Nulla facilisi. Quisque sem mauris, ullamcorper ac, gravida id, mattis id, sapien. Nullam adipiscing enim dapibus felis. Fusce a nisi in odio pulvinar fringilla. Nunc blandit interdum metus. Duis leo nunc, sollicitudin ut, fermentum congue, pharetra eu, massa. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque congue tristique eros. Nulla </p> </div> </div> <div class="col1"> <div class="content"> <h1>Three</h1> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque congue tristique eros. Nulla facilisi. Quisque sem mauris, ullamcorper ac, gravida id, mattis id, sapien. Nullam adipiscing enim dapibus felis. Fusce a nisi in odio pulvinar fringilla. Nunc blandit interdum metus. Duis leo nunc, sollicitudin ut, fermentum congue, pharetra eu, massa. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque congue tristique eros. Nulla </p> </div> </div> <div id="columnbottom"> </div> </div> <div id="footer"> <div id="footercontent"></div> </div> </body> </html> Last edited by davuart; 08-14-2009 at 07:04 PM. Reason: did not read the question fully |
|
|||
|
I suggest using the 960 Grid System (type this in your browser: 960.gs) to help with your layout. It's a huge time-saver and is cross-browser compatible.
|
|
||||
|
Quote:
Like I've said before, one of the worst things about 'pure' css layouts is that in the future, the next designer isn't only going to have to trace the html but will have to trace whatever was running through the developers head when we wrote his css styles...a table is always a table but a div and span could be almost anything in css and anywhere for that matter too...
__________________
Join free dating sites and meet single people without paying a penny. |
|
||||
|
Thanks for the response Sharon - a very good point I totally agree, however for this particular issue I am basically in control of that one div which is supposed to be filled by info about magazines - which get generated via a registration process, anyway I cant in anyway change the outer container or anything else, just that div! Anyway I think someone on the other end just cant be bothered to make a compromise hense muggins over here!
|
|
||||
|
Davuart -
Thats brill thanks for time and effort, however Im only allowed to change one div for that particular proj so that dynamic data can populates different blocks within a two-column format.... yup I know stupid restriction, but I think on monday they may have to compromise and give the go ahead for a complete layout change! However your layout is a much cleaner version of a similar layout I completed for a site im currently doing for my mate (FOR FREE!), I think I should pretend Im getting paid and up my game! |
|
||||
|
NJ-
Cheers, Yes I agree about the ID's, Im trying to be a purist! And yes unfortunately I'll still have that problem, my collegue created that markup and asked me to look at the prob so after a redbul and x amount of time later I just gave up, went to the gym and re-assured myself that I am a...well reasonably ok web designer! |
|
||||
|
Morestar,
Thats cool I gets ya, but for that particular job I had to use a 1 div for dynamic data that needed to fill/display in a two-column layout. Im still a reletively new designer so I think I just want to do new things and not go back to tables... I actually get angry at the idea of using a table after trying to use CSS lol, like Im surrenduring or something. But yep a good point |
|
|||
|
You could use the interactive Yahoo CSS Grid Builder
please excuse the non link link, I currently have less than 10 posts. Go to the following -- developer.yahoo.com/yui/grids/builder/ |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Regarding Site's cache prob??? | govindseo | Google Discussion Forum | 2 | 09-25-2008 09:11 PM |
| Language Redirect Indexing Prob. | soia15 | Search Engine Optimization Forum | 9 | 05-10-2006 05:04 PM |
| can anyone help with this oscommerce prob? | Biggles | Web Programming Discussion Forum | 0 | 09-30-2005 03:42 PM |
| Prob with signing up for the WPW newsletter... | mlevenhagen | WebProWorld: Guidelines/Announcements/Suggestions | 1 | 11-29-2004 04:54 PM |
| Obscuring email addy from bots (prob.Off topic) | writergrrrl48 | Search Engine Optimization Forum | 3 | 02-18-2004 12:51 AM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |