Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Sat Nov 21, 2009 6:47 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ]  Bookmark and Share
Author Message
 Post subject: One column centered but text overflow
PostPosted: Wed Aug 13, 2008 7:47 am 
Offline

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
 Profile  
 
 Post subject: Re: One column centered but text overflow
PostPosted: Fri Mar 06, 2009 8:49 pm 
Offline

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
 Profile  
 
 Post subject: Re: One column centered but text overflow
PostPosted: Sat Mar 07, 2009 1:50 am 
Offline
500+ Club
User avatar

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
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley