Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



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

Posts: 94
Trades: 0
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
 
 
Register now for full access!
Old 11-16-2006, 01:59 PM Re: am i doing this right or wrong?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


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

Posts: 94
Trades: 0
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, 09:24 PM Re: am i doing this right or wrong?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-17-2006, 02:51 PM Re: am i doing this right or wrong?
Skilled Talker

Posts: 94
Trades: 0
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, 03:31 PM Re: am i doing this right or wrong?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-17-2006, 07:31 PM Re: am i doing this right or wrong?
Skilled Talker

Posts: 94
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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
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.26985 seconds with 12 queries