Reply
New to tableless designs
Old 12-18-2005, 01:49 PM New to tableless designs
Skilled Talker

Posts: 79
Hello everyone,

I'm new to tableless designs and need a little help with my CSS.
Here is the layout I want:


Here is what I have for code:
Code:
<HTML>
  <HEAD>
    <TITLE>A frame document with CSS2</TITLE>
    <STYLE type="text/css">
      <BODY        
      #header {
        position: fixed;
        width: 800px;
        height: 150px;
        top: 0;
        right: 0;
        bottom: auto;
        left: 0;
      }
      #topLinks {
        position: fixed;
        width: 800px;
        height: 55px;
        top: 150px;
        right: 0;
        bottom: auto;
        left: 0;
      }
      #sideBar {
        position: fixed;
        width: 150px;
        height: auto;
        top: 205px;
        color: #48607C;
        right: 0;
        bottom: auto;
        left: 650px;
      }
      #main {
        position: fixed;
        width: 650px;
        height: auto;
        top: 205px;
        right: 150px;
        bottom: auto;
        left: 0;
      }
      </style>
      
      <div id="header"></div>
      <div id="topLinks"></div>
      <div id="sideBar">This needs to be on the right side </div>
      <div id="main"></div>
</body>
</html>
What am I doing wrong?
Can someone help me get started out?

Thanks,
Alex
__________________
Dual Flush Toilets
myshtern is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 12-18-2005, 02:06 PM
praveen's Avatar
Life is a Dream

Latest Blog Post:
A little bit of coffee
Posts: 3,570
Location: in a distant land far away from reality
Code:

<html>
<head>
<style>
#container {
    width: 780px;
    margin: 0px;
    color: #333;
    border: 1px solid #000000;
    line-height: 130%;
    padding: 1px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    background-color: #FFFFFF;
    margin-left: auto;
    margin-right: auto;

}

#header {padding: .5em;

color:#FFFFFF;}

#toplinks{font-family: verdana, arial, Helvetica,sans-serif;
font-size: 10px;
text-decoration: none;
line-height: 12px;
background-color: #0066CC;
border-bottom: 1px solid #fff;
height:15px;
text-align:center;
color:#FFFFFF;
padding: 3px;
border-top-width: 1px;
border-top-style: solid;
border-top-color: #fff;}


#sidebar{float: right;
width: 190px;
margin: 0;
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
border-left: 1px solid #000000;

color: #666666;}

#main{margin-left: 2px;
margin-right: 190px;
padding: 1em;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000000;
}
</style>


</head>

<body>
<div id="container">
<div id="header"></div>
<div id="toplinks"></div>
<div id="sidebar"> side bar</div>
<div id="main">content</div>
</div>
</body>
</html>




try this this should work.
__________________
Praveen
Web Tools - Smilies - Celebs - Bookmarks - Indian Food - Create a Poll

Useful Threads, Tutorials and Resources
Graphics - Templates - Dreamweaver - Javascript - SEO - Ruby on Rails - Ajax Tutorials - More Ajax - CSS - More CSS

Last edited by praveen : 12-18-2005 at 02:28 PM.
praveen is offline
Reply With Quote
View Public Profile Visit praveen's homepage!
 
Old 12-18-2005, 02:19 PM
vangogh's Avatar
Post Impressionist

Posts: 8,816
Name: Steven Bradley
Location: Boulder, Colorado
Hi myshtern,

For starters your html is off a little. Your css needs to be in the head of your document not in the body.

Your html should look like this

Code:
<html>
<head>
<title></title>

<style type="text/css">
 your styles
</style>

</head>

<body>
 your html structure
</body>

</html>
You can use the all caps for your html, but it's better practice to use lowercase for your tags.

Also in your css positioning you should probably use position:absolute instead of fixed.

Try that first and let me know if you're still having problems.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 12-19-2005, 12:47 PM
Novice Talker

Posts: 5
and welcome to css
mysticalfairy is offline
Reply With Quote
View Public Profile Visit mysticalfairy's homepage!
 
Reply     « Reply to New to tableless designs
 

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