Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Newbie: 3 column css layout
Old 03-01-2010, 12:19 PM Newbie: 3 column css layout
Novice Talker

Posts: 8
Trades: 0
Hi

I have a basic 3 column layout

Left Content Right

The left and right columns simply contain a background drop shadow image that I want to snap to the sides of the content.

I have 2 problems

1. The left background image is flush with the left of the screen, I want it to be flush to the left side of the content div. I can make this work with margin-left:200px; but i;m worried this will break on a different screen res, it needs to be positioned relative to the content I think.

2. Same as 1 my right background appears flush to the right edge of the screen, but also below everything else, i.e. it begins vertically when the content area finishes.

Any help appreciated

Thanks
ChilliLime is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-01-2010, 12:58 PM Re: Newbie: 3 column css layout
aldor's Avatar
Ultra Talker

Posts: 479
Name: Alan
Location: Lincoln(UK)
Trades: 0
It's difficult to see exactly what you are getting at without a link or at least the code you are using.

But from what you say and assuming your content is a fixed width make an image that has a drop shadow either side and the distance between them the width you want your content to be. Then adjust the width to take account of the drop shadow and use it as a background to the content but only repeating in the y axis.
aldor is offline
Reply With Quote
View Public Profile
 
Old 03-01-2010, 02:24 PM Re: Newbie: 3 column css layout
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
I would suggest something a bit simpler - make ONE image that repeats vertically for your background that INCLUDES the drop shadow rather than making 2 divs just for the shadows.

Quote:
The left background image is flush with the left of the screen
Assuming you are floating it left, it's doing exactly what you told it to do - same for the right.

My other suggestion, if you just have to use divs just for shadows, would be to add another 'wrapper' div that's just the shadow widths wider than your main div.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Newbie: 3 column css layout
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20542 seconds with 12 queries