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
Old 08-29-2006, 08:13 PM CSS Wrapper Issue
Novice Talker

Posts: 5
Name: lex
Trades: 0
The original issue has been fixed, but now the content div is resting beneath the entire wrapper. Does anyone see why the content div is being forced out of the wrapper?

>>>>

Hi,

Can someone give me a clue as to why the wrapper section of this page isn't displaying a solid white background? My original template was hacked by someone else and now I can't find the bug that is causing the wrapper div to display without a solid white bg so it doesn't break up the nested divs with the dark gray bg.

reference link


Thanks a lot.

lex

Last edited by lex2000; 08-29-2006 at 08:23 PM..
lex2000 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-29-2006, 08:22 PM Re: CSS Wrapper Issue
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Code:
div.wrapper { 
 position: relative;
 width: 973px; 
 background-color: #ccc;
 font-size: 11px;
 line-height: 15px;
 color: #333;
 font-family: Helvetica Neue, Verdana, Arial, Helvetica, sans-serif;
 text-align: justify;
 margin: 0 auto;
}
Change the bolded part to background-color: #FFFFFF .
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 08-29-2006, 08:26 PM Re: CSS Wrapper Issue
Novice Talker

Posts: 5
Name: lex
Trades: 0
Like I said, the background color issue (the original issue) has been resolved. I'm trying to figure out why the content div is being forced below the wrapper.

My colors are as such to show the different divs and their placement.
lex2000 is offline
Reply With Quote
View Public Profile
 
Old 08-29-2006, 08:31 PM Re: CSS Wrapper Issue
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Ohhhhh. I thought you meant the wrapper was the wrong colour.

Hang on, I'll look again.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 08-29-2006, 08:33 PM Re: CSS Wrapper Issue
Novice Talker

Posts: 5
Name: lex
Trades: 0
Thanks a ton.
lex2000 is offline
Reply With Quote
View Public Profile
 
Old 08-29-2006, 08:35 PM Re: CSS Wrapper Issue
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Ahhh...I see why. Dude, whoever hacked at this was a butcher.

This is a layout that could easily be done with floats and using no positioning whatsoever. Basically, you make your containing div, float one div to the left, one to the right and Bob is your uncle.

The BEST thing you can do for yourself is to strip down your code and reconstruct it from the outside in. Start with your shell...put your wrapper in place, then add your left nav, then your right side, and THEN fill in your content. At that point, things will be a lot leaner, meaner, and clearer.

Simply put, your code is a mess.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 08-29-2006, 08:57 PM Re: CSS Wrapper Issue
Novice Talker

Posts: 5
Name: lex
Trades: 0
Figures. I thought this would be a quick graphics update, but things were far worse when I got into it. Thanks for the help.
lex2000 is offline
Reply With Quote
View Public Profile
 
Old 08-29-2006, 09:00 PM Re: CSS Wrapper Issue
menerweb's Avatar
Extreme Talker

Posts: 150
Trades: 0
Quote:
Originally Posted by ADAM Web Design View Post

Change the bolded part to background-color: #FFFFFF .
It is shorter and better to use "background: #fff;" instead of using "background-color: #ffffff;"
__________________
Portfolio:
Please login or register to view this content. Registration is FREE
| About Forex:
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by menerweb; 08-29-2006 at 09:02 PM..
menerweb is offline
Reply With Quote
View Public Profile Visit menerweb's homepage!
 
Old 08-30-2006, 01:35 AM Re: CSS Wrapper Issue
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Background: #fff; is just "shorthand" for background-color: #ffffff -- same same.
__________________
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
 
Old 08-30-2006, 05:15 PM Re: CSS Wrapper Issue
Novice Talker

Posts: 5
Name: lex
Trades: 0
I'm still at a loss. Mind taking another look?

link 2

Last edited by lex2000; 08-30-2006 at 05:39 PM..
lex2000 is offline
Reply With Quote
View Public Profile
 
Old 08-30-2006, 05:59 PM Re: CSS Wrapper Issue
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You need to set nav to float: left as Adam suggested. Give .content a left margin wide enough to push it past the .nav section. Clear your floats.

This might help:
Floatutorial: Step by step CSS float tutorial
__________________
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
 
Old 08-31-2006, 07:16 AM Re: CSS Wrapper Issue
menerweb's Avatar
Extreme Talker

Posts: 150
Trades: 0
Quote:
Originally Posted by LadynRed View Post
Background: #fff; is just "shorthand" for background-color: #ffffff -- same same.
Less coding means less time to load and less using of bandwidth.

If you use this methods whole your css you can save a lot bytes.
__________________
Portfolio:
Please login or register to view this content. Registration is FREE
| About Forex:
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
menerweb is offline
Reply With Quote
View Public Profile Visit menerweb's homepage!
 
Reply     « Reply to CSS Wrapper Issue
 

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.36248 seconds with 12 queries