Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

CSS positioning + insertion of text
 

krb100




quote this post edit post

IP Loged report this post

Old Post  09-30-04 - 12:16 AM  
I am redoing a site so that I get rid of all the tables and only utilize css
. I
have all the elements in place but I know I am doing something wrong.

1. My header css div height I have set to 202px, but when viewing it in dw m
x
04 it goes all the way down half the page?
2. I want to write text in my content box, but there is only one giant curso
r?
If I try to write anything the design explodes and I am writting text outsid
e
the design?

What am I doing wrong?

I am pasting the HTML code and css style sheet here for viewing:

CSS STYLE SHEET:

body {
margin: 0px;
margin-top: 0px;
padding: 0px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
}
.GradientBack {
background-image: url(../Images/background.jpg);
background-repeat: repeat-x;
}
#wrapper {
width: 801px;
}
#maincontainer {

}
#header {
background-image: url(../Images/header.jpg);
background-repeat: no-repeat;
height: 202px;
width: 800px;
}
.footer {
background-image: url(../Images/footer.jpg);
background-repeat: no-repeat;
height: 42px;
width: 801px;
margin-left: -1px;
}
#pic1 {
background-image: url(../Images/NavPic1.jpg);
background-repeat: no-repeat;
height: 137px;
width: 103px;
position: absolute;
top: 249px;
left: 36px;
}
#mainContent {
background-image: url(../Images/mainContent.jpg);
background-repeat: no-repeat;
height: 445px;
width: 631px;
margin-left: 169px;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-align: justify;
font-size: .9em;
line-height: 1.5em;
}
#content {
width: 800px;
height:445px;

}
#pic2 {
background-image: url(../Images/NavPic2.jpg);
background-repeat: no-repeat;
height: 146px;
width: 127px;
position: absolute;
left: 29px;
top: 449px;
}
#leftMenu {
background-image: url(../Images/LeftMenu.jpg);
background-repeat: no-repeat;
height: 445px;
width: 170px;
position: relative;
margin-left: -170px;
}


HTML CODE:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>peterKarby.com</title>
<style type="text/css">
<!--
@import url("Css/petersStyle.css");
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}
a:link {
text-decoration: none;
color: #000000;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
color: #000000;
}
body {
background-color: #D7D7D7;
margin-top: 0px;
}
.style1 {font-size: 10px}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>

<body class="GradientBack">
<div id="header"></div>
<div id="content">
<div id="mainContent">
<div id="leftMenu"></div>
<div id="pic1"></div>
<div id="pic2"></div>
</div>
</div>

<div class="footer" id="Footer"></div>
</body>
</html>




Post Follow-Up to this message ]
Re: CSS positioning + insertion of text
 

Osgood




quote this post edit post

IP Loged report this post

Old Post  09-30-04 - 09:15 AM  
Oh forgot to add I put a green bg on the #content <div> so i could see
where it was positioned. You will have to remove that.


#content {
width: 800px;
height:445px;
background-color: #ab1;

}



Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 05:48 PM. Post New Thread   
  Previous Last Thread   Next Thread next
Dreamweaver archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top