2 replies [Last post]
dean.c4
dean.c4's picture
User offline. Last seen 1 year 33 weeks ago. Offline
newbie
Timezone: GMT-5
Joined: 2010-05-18
Posts: 4
Points: 6

You can look at the page located here: http://www.crhcf.org

I'm building a master page and content pages with Visual Studios. All of that is fine.

The problem I'm having is I have a 1 pixel wide vertical image of a gradient for the background and it is supposed to have a small shadow at the top because it starts just under the menu bar. If you look at the sidebar, you will see this shadow at the top of that graphic, but it stops when it gets to the section where I need it (main content section to the right of the sidebar). I can see the shadow on the actual 1px image, but it acts like the image in the page is getting scooted up, maybe behind the menu and hiding the top bar? I'm not really sure what's going on.

Also, I can't seem to get the padding to work for the main content section (where the word "foo" is at). I want a 20px margin/padding between it and the vertical line of the sidebar image. I've tried both padding-left and margin-left, but neither made a difference.

dean.c4
dean.c4's picture
User offline. Last seen 1 year 33 weeks ago. Offline
newbie
Timezone: GMT-5
Joined: 2010-05-18
Posts: 4
Points: 6

I figured out the missing

I figured out the missing shadow. Still haven't figured out the padding issue.

CupidsToejam
CupidsToejam's picture
User offline. Last seen 17 weeks 15 hours ago. Offline
rank Guru
Guru
Timezone: GMT-6
Joined: 2008-08-15
Posts: 2634
Points: 1552

The use you all these BR tags

The use you all these BR tags is very very very sloppy!! To solve your problem, try this...

#sidebar_image {padding-right: 20px;}

VALIDATE YOUR CODE


First basic few steps in building a webpage
1. Gather and collect content.
2. Organize the content into meaningful semantic valid HTML
3. Design the prototype
4. Style using CSS

http://www.pixelbehavior.com