Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-06-2010, 07:17 PM   PM User | #1
fbm88
New to the CF scene

 
Join Date: Nov 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
fbm88 is an unknown quantity at this point
Overall Layout Issue

Hey all,

I've got some basic self-learned experience when it comes to coding in CSS and HTML. I'm currently running a Wordpress blog (www.freshbornmarket.com), and the CSS edits i'm trying to make are more complicated than anything i've messed around with before.

What I'm trying to do is have that black navigation bar hang over each side (see bottom image). By lengthening it, i can make it float over one side at a time, but not both. The bar is contained by a content div with 20px padding on each side.

Any idea how I could achieve this look? Sorry about the large images.


CURRENT:



DESIRED RESULT:

Last edited by fbm88; 11-06-2010 at 10:35 PM..
fbm88 is offline   Reply With Quote
Old 11-06-2010, 08:06 PM   PM User | #2
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,817
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
There's a few ways of doing this. Perhaps:

Code:
#masthead{
position:relative;
padding-bottom:38px}

#access {
-moz-box-shadow:3px 2px 0 #D9D9D9;
background:none repeat scroll 0 0 #000000;
bottom:0;
display:block;
left:-40px;
position:absolute;
width:1020px;
}
So here we're using absolute positioning which is the easiest way to move your navigation outside of the normal wrapper width.
SB65 is offline   Reply With Quote
Users who have thanked SB65 for this post:
fbm88 (11-06-2010)
Old 11-06-2010, 10:35 PM   PM User | #3
fbm88
New to the CF scene

 
Join Date: Nov 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
fbm88 is an unknown quantity at this point
Wow, that was easy. Thanks a ton for the fast help. I'll be sticking around here to do what i can!
fbm88 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 08:59 PM.


Advertisement
Log in to turn off these ads.