[SOLVED] Content Wrap not working

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
bob_basli
Forum Members
Forum Members
Posts: 189
Joined: Mon Sep 24, 2007 6:18 pm
Location: The Netherlands

[SOLVED] Content Wrap not working

Post by bob_basli »

Hi all.
I'm trying to convert the Azulmedia stylesheet from Styleshout into a template for CMSMS.

When copying the text and css, the wrap / content wrap is not showing properly.

Wrap code:

Code: Select all

#wrap {
	background: #212B5C url(bg.jpg) repeat-x 0 0; 
	margin: 20px auto 0 auto;	
	text-align: left;		
  	border-color: #444;
	border-style: solid;
	border-width: 1px 1px 5px 1px;	
}
Content wrap code:

Code: Select all

#content-wrap {
	clear: both;
	margin: 0; padding: 0;			
}
I think the thing is in the Wrap, that should create the blue background for the whole layout
Can anyone tell me what I'm doing wrong?

Regards,
Arjan
Attachments
scrnshot.png
scrnshot.png
Last edited by bob_basli on Wed Sep 30, 2009 8:32 am, edited 1 time in total.
roy0810
Forum Members
Forum Members
Posts: 10
Joined: Thu May 14, 2009 12:10 pm

Re: Content Wrap not working

Post by roy0810 »

I believe you have to define a height and a width.

Think height:auto;  would do..
bob_basli
Forum Members
Forum Members
Posts: 189
Joined: Mon Sep 24, 2007 6:18 pm
Location: The Netherlands

Re: Content Wrap not working

Post by bob_basli »

Nope, tried that already, not working.
Thanks anyway.

Found out that it only occurs in Opera 10 and IE 8.
In IE 7 it's working, dunno about FF

Hope someone else has an idea?
Last edited by bob_basli on Tue Sep 29, 2009 11:08 am, edited 1 time in total.
jack4ya
Power Poster
Power Poster
Posts: 294
Joined: Thu Oct 19, 2006 10:07 am

Re: Content Wrap not working

Post by jack4ya »

Hi  ;)

Can you give the html and css code?

For now: I am assuming you have something very similar like this:


 
   {menu}
   {content}
   


Then add
overflow: hidden;
height: 100%;
width: 100%;

to the parent of child, in this case #content-wrap

#wrap {
background: #212B5C url(bg.jpg) repeat-x 0 0;
margin: 20px auto 0 auto;
text-align: left;
border-color: #444;
border-style: solid;
border-width: 1px 1px 5px 1px;
}
#content-wrap {
clear: both;
margin: 0;
padding: 0;
overflow: hidden;
height: 100%;
width: 100%;

}
Last edited by jack4ya on Tue Sep 29, 2009 11:25 am, edited 1 time in total.
bob_basli
Forum Members
Forum Members
Posts: 189
Joined: Mon Sep 24, 2007 6:18 pm
Location: The Netherlands

Re: Content Wrap not working

Post by bob_basli »

Thanks, your addition's working!
Post Reply

Return to “Layout and Design (CSS & HTML)”