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 01-15-2010, 04:02 PM   PM User | #1
rockonpub
New to the CF scene

 
Join Date: Jan 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
rockonpub is an unknown quantity at this point
Text overflowing horizontally from div

Hey everyone,

I've been racking my brain but can't figure out why the text is overflowing on this site:

http://ndox.co.uk/Governors.aspx

Don't mind the horrible code that the cms, GIMP, has churned out. The basic template I did was compliant and clean.

I've tried clear: both and also a div after the content with clear: both inline but I can;t get it to stay inside the pagecontent div!

Any ideas?
rockonpub is offline   Reply With Quote
Old 01-15-2010, 04:04 PM   PM User | #2
rockonpub
New to the CF scene

 
Join Date: Jan 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
rockonpub is an unknown quantity at this point
Ah, forgot to add that it works in IExplorer but not in Chrome (so i'm guessing not in Firefox either).
rockonpub is offline   Reply With Quote
Old 01-15-2010, 04:19 PM   PM User | #3
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,689
Thanks: 158
Thanked 2,184 Times in 2,171 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
The DOCTYPE used is incomplete, check the article at http://www.alistapart.com/articles/doctype and use a proper one. I'd recommend
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
. After that, validate your page using http://validator.w3.org/ and fix all other errors left in your markup.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 01-15-2010, 04:24 PM   PM User | #4
rockonpub
New to the CF scene

 
Join Date: Jan 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
rockonpub is an unknown quantity at this point
I'll change the doctype but do you think it's overflowing because of improper generated code by the cms?

The template I made is only this:

Code:
<div align="center">
	<div class="pagetop">
	</div>
	<div class="wrapper">
		<div class="pagenav">
			<div class="mainlogin">
				<dnn:LOGIN runat="server" id="dnnLOGIN" /><a href="#"></a>
			</div>
			<div class="mainmenu">
				<dnn:MENU runat="server" id="dnnMENU" />
			</div>
		</div>
		<div class="pagecontent" id="ContentPane" runat="server" visible="false">
		</div>
		
	</div>
	
	<div class="pagefooter">
	</div>
	
</div>

<div align="center">
	<dnn:COPYRIGHT runat="server" id="dnnCOPYRIGHT" />
</div>
rockonpub is offline   Reply With Quote
Old 01-15-2010, 04:27 PM   PM User | #5
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Good morning rockonpub,
You have .wrapper set at 500px height. That's what it's doing too, not a clue how IE makes that work

Remove this bit in red (.wrapper is found in skin.css)
Code:
.wrapper {
	position: relative;
	background-image: url(pagewrapper.jpg);
	background-position: top center;
	background-repeat: repeat-y;
	width: 944px;
	margin: 0px;
	padding: 0 10px 0 10px;
	height: 500px;
}
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 01-15-2010, 04:30 PM   PM User | #6
rockonpub
New to the CF scene

 
Join Date: Jan 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
rockonpub is an unknown quantity at this point
Oh dear god. How could I have missed that!? I put it in before any content was there to compensate and forgot it was there!

Thank you haha.
rockonpub is offline   Reply With Quote
Old 01-15-2010, 04:31 PM   PM User | #7
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,689
Thanks: 158
Thanked 2,184 Times in 2,171 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Quote:
Originally Posted by Excavator View Post
Good morning rockonpub,
You have .wrapper set at 500px height.
I misses it. And there's one more height to be removed from
Code:
.pagecontent {/*skin.css (line 84)*/
font-size:15px;
height:100%;
margin:0;
padding:10px 45px;
position:relative;
text-align:left;
width:854px;
}
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 01-15-2010, 04:47 PM   PM User | #8
rockonpub
New to the CF scene

 
Join Date: Jan 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
rockonpub is an unknown quantity at this point
Thanks guys. Feel like an idiot
rockonpub 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 10:45 PM.


Advertisement
Log in to turn off these ads.