Reply
am i doing this right or wrong?
Old 11-15-2006, 03:50 PM am i doing this right or wrong?
Skilled Talker

Posts: 94
hey all ok i want to make like a basic site with a Header, Content Area, and Footer. now how would i make this, position it, and still have it like:

|-----Header-----|
|C o n t e n t ! ! !|
|-----Footer------|

i gave it ago myself and i kinder did it, but im not sure if its the right way to do it?! i dont want to learn the wrong way when there is a right way. so here is the code
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
<!--
.holder {
    font-family: Tahoma;
    font-size: 12px;
    color: #009900;
    position: absolute;
    left: 200px;
    top: 50px;
}
-->
</style>
</head>

<body>
<div class="holder">
  <table width="200" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><img src="Untitled-1_01.gif" width="200" height="8"></td>
    </tr>
    <tr>
      <td background="Untitled-1_03.gif">this is the content :) </td>
    </tr>
    <tr>
      <td><img src="Untitled-1_05.gif" width="200" height="8"></td>
    </tr>
  </table>
</div>
</body>
hellhound121 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 11-16-2006, 12:59 PM Re: am i doing this right or wrong?
LadynRed's Avatar
Super Moderator

Posts: 6,072
Location: Tennessee
Take out the position:absolute, it's not necessary.

Are you going for a fixed-width layout ?

I'd get rid of the tables completely too, no need unless you're going to be displaying tabular data.

<div id="holder">
<div id="header">header</div>
<div id="content"> content</div>
<div id="footer">footer</div>
</div> ** close holder
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club

Last edited by LadynRed : 11-16-2006 at 01:01 PM.
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-16-2006, 05:41 PM Re: am i doing this right or wrong?
Skilled Talker

Posts: 94
could you post the css to go with that so i know how it would be done so i can learn from it and try create my own like it?
hellhound121 is offline
Reply With Quote
View Public Profile
 
Old 11-16-2006, 08:24 PM Re: am i doing this right or wrong?
LadynRed's Avatar
Super Moderator

Posts: 6,072
Location: Tennessee
Try this - take a look at the code for this page:
http://www.oswd.org/files/designs/2945/Blue_Rain/
It's a fairly simple 1-column layout with header and footer, like what you want to do. You can download the whole template here:
http://www.oswd.org/design/preview/id/2945
It's FREE and Open Source.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-17-2006, 01:51 PM Re: am i doing this right or wrong?
Skilled Talker

Posts: 94
i dont understand they use there images as "background" and when i did that people said it was the wrong way to do it :S whats going on
hellhound121 is offline
Reply With Quote
View Public Profile
 
Old 11-17-2006, 02:31 PM Re: am i doing this right or wrong?
LadynRed's Avatar
Super Moderator

Posts: 6,072
Location: Tennessee
They are using the images for the backgrounds of the DIVs, and that approach is very common and quite acceptable - I do it all the time ! With the graphic set up as the background on a div in the CSS, it leaves the area inside the div open for content in your HTML code.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-17-2006, 06:31 PM Re: am i doing this right or wrong?
Skilled Talker

Posts: 94
haha thats what i did doh thanks for the info i learn somthing everytime i come to this forum, ty all.
hellhound121 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to am i doing this right or wrong?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14938 seconds with 13 queries