zygoma — 2010-08-27T12:26:27-04:00 — #1
In my quest to crack faux columns Ive hit another brick wall
On this page -
I want the left column in yellow to run down to the bottom rather than cut short.
I put this css code in -
border: 3px solid black;
background:#00FF66 url(../images/faux_column_160.jpg) repeat-y 50% 0;
But why doesnt it run all the way to the bottom?
Heres a screen grab to illustrate the prob -
Any insights welcome
zygoma — 2010-08-29T18:42:23-04:00 — #2
Brilliant thanks Steve I'll have another go this tues and post my progress (After Ive sorted the virus cra*p out )
zygoma — 2010-08-29T18:40:26-04:00 — #3
off topic: OK the attack site message is driving me nuts. I knocked out all virus lines and re submitted the site but still getting the damn message. When I left it on friday just gone I had no attack crap signs. Ive knocked out the iframes on all pages. I cant even check the source code from home to see if its re infected. I'll have to wait till tuesday before I can do anything about it
But apologies for exposes members to this
paulob — 2010-08-29T13:08:00-04:00 — #4
As Stevie D said above the faux column goes on a parent of the floated element (preferably not on the body though as that is always one pixel out on some browsers).
The parent holds the floats and therefore is always as tall as the tallest float and therefore an image repeated on the parent will always reach the bottom and make both columns appear to be equal. The actual columns don't change their height but that doesn't matter as they just lay on to p of the background.
More info here.
Your site is showing as an "atttack site" so you need to make sure all malware has been removed and then probably re-submit it to google (go to webmaster tools and
select request a review once you have cleaned the site ).
daveg7 — 2010-08-28T17:44:22-04:00 — #5
When I try to see the site you mentioned, why do I get the following message in Firefox? Reported Attack Page!
What's up please?
stevie_d — 2010-08-29T05:28:24-04:00 — #6
That isn't how faux columns works...
What you do with faux columns is create a single background image that goes behind both columns (eg on the <body> element). Each of the two columns then has a transparent background, so that the image behind shows through. That way, the background image stretches all the way down to the end. You just need to make sure that the background image is lined up correctly so that the two columns are correctly aligned with the background colours. It's called faux columns, because the colour/image isn't actually attached to the column, it's just a visual trick.
zygoma — 2010-08-28T17:22:29-04:00 — #7
Thank you for your reply but I thought faux columns when done properly could stretch a column vertically overiding the distance in naturally wants to stop at:confused:
zygoma — 2010-08-31T10:15:51-04:00 — #8
Yes it worked thank you - I get it now Its the parent of the columns I should be targetting not the actual columns individually
Thank you everyone!
sdleihssirhc — 2010-08-27T12:54:32-04:00 — #9
Maybe I'm missing something obvious, but isn't this the expected behavior? A block-level element (like a div) will only be as tall as the content it contains.