|
Your time now: Sun Nov 08, 2009 5:01 am
|
View unanswered posts | View active topics
| Author |
Message |
|
Albert1955
|
Post subject: One column centered but text overflow Posted: Wed Aug 13, 2008 7:47 am |
|
Joined: Sat May 26, 2007 10:06 am Posts: 9
|
|
hello
I am trying to do a simple one column page with three divs all same width under each other
But if I put in more text into the 'content' div, it overflows onto the right space and is not contained within the div
what am i doing wrong ? here is the code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>alo consulting</title>
<style type="text/css">
* { padding: 0; margin: 0;}
body {
font-family: arial, sans-serif;
font-size: 1.0em;
color: #00ffaa;
background: #00f0f2;
}
#wrapper {
margin: 0 auto;
width: 800px;
background: #ffffff url(images/bg.gif);
background-repeat-y;
}
#phone {
width: 800px;
padding: 10px;
height: 100px;
margin: 0px 0px 0px 0px;
background: #a3a3a3;
}
#logo {
width:800px;
padding: 10px;
height: 200px;
margin: 0px 0px 0px 0px;
background: #aabbff;
}
#content {
width: 800px;
padding: 10px;
height: 350px;
margin: 0px 0px 0px 0px;
background: #224455;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="phone"> p 9511 1111 | m 0418 111 111 | f 1113 1111
</div>
<div id="logo">some stuff goes here as well as logo
</div>
<div id="content">
service.support.solutions.service.support.solutions.service.support.solutions.service.support.solutions.
</div>
</body>
</html>
any help would be received with thanks
A
|
|
| Top |
|
 |
|
X-Bumble
|
Post subject: Re: One column centered but text overflow Posted: Fri Mar 06, 2009 8:49 pm |
|
Joined: Tue Feb 17, 2009 1:31 am Posts: 8
|
|
What browser is doing this (it's going to be Internet Explorer 7 or below I bet...).
I just used your code and it is fine with FF3.
By the way, you don't need to specify margins as Zero in each div as you done because you have already declared them to be zero via the global command (*).
_________________ Freelance Web Designer - Michael Edwards
|
|
| Top |
|
 |
|
rangana
|
Post subject: Re: One column centered but text overflow Posted: Sat Mar 07, 2009 1:50 am |
|
 |
| 500+ Club |
 |
Joined: Wed Feb 27, 2008 6:14 am Posts: 929 Location: Cebu City Philippines
|
|
Looks fine on IE at my end. Please elaborate a little further.
_________________ ~ Get me some work, I do freelancing ~
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 3 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 0 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|
|