Webmaster Forum

Ezilon Directory   High Bandwidth Dedicated Servers   V7N Directory
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Reply
 
LinkBack Thread Tools Display Modes
Old 10-05-2007, 06:32 AM   #1 (permalink)
Inactive
 
Join Date: 10-05-07
Posts: 4
iTrader: 0 / 0%
Latest Blog:
None

CorumMc is liked by many
CSS: First table-less site

I'm donating my time to a local civic organization and am using the opportunity to finally try to wean myself off of table based layouts. I'm having an issue with positioning the last element on the page and would really appreciatte any help at all.

It is a basic site plan that I'm saving out as a Dreamweaver template; Head w/ nav, 1 column body, Foot. The home page is a little different with 2 columns in the body and a callout in the bottom right corner that overlays the foot and 2nd column.

I've tried placing the 2 columns and callout inside a body div, or keeping them seperate with the head and foot, and also placing the callout within the foot itself, all with little success. Below is essentially how I have it laid out so far. It seems to work in Firefox but not in IE.

Quote:
<!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>Untitled Document</title>
<!--link href="positions.css" rel="stylesheet" type="text/css" /-->
<style type="text/css">
#body {
background-color: #CCCCCC;
width: 800px;
}
#head {
background-color: #33FFFF;
height: 50px;
width: 800px;
}
#content {
background-color: #CCFF99;
width: 800px;
position: relative;
}

#foot {
clear:both;
background-color: #CCCC66;
height: 50px;
width: 800px;
}
#left {
background-color: #9999FF;
width: 500px;
float:left
}
#right {
background-color: #FFFFCC;
width: 300px;
top: 0px;
right: 0px;
float:right
}
#corner {
background-color: #FF6666;
width:300px;
height: 150px;
top: -120px;
right: 0px;
position:relative;
float:right;
}
</style>
</head>

<body>
<div id="body">
<div id="head">HEAD</div>
<div id="content">
<div id="left">
Aenean pulvinar malesuada odio. Ut sodales. Nulla lacus eros, convallis eu, laoreet eu, porttitor nec, lorem. Etiam risus. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin eget nunc nec quam tincidunt gravida. Phasellus accumsan. Curabitur non ipsum. Aenean rhoncus ultricies libero. Proin viverra ante a lacus. Duis a odio. Nulla tortor. In faucibus convallis elit. Proin vel nulla. Vivamus id augue eget ante auctor pellentesque. Vestibulum orci enim, pharetra at, porta ac, volutpat dignissim, erat. Nulla facilisi. Quisque enim. Vestibulum fermentum condimentum ipsum. Aenean non risus at sapien luctus scelerisque. In hac habitasse platea dictumst. Phasellus a lectus a orci varius suscipit. Sed quis sapien non erat egestas accumsan. Aenean lacinia metus ut orci. Etiam interdum, pede non rhoncus viverra, dui nibh sollicitudin quam, a auctor dui est eu nulla. <br /><br />
Aenean pulvinar malesuada odio. Ut sodales. Nulla lacus eros, convallis eu, laoreet eu, porttitor nec, lorem. Etiam risus. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin eget nunc nec quam tincidunt gravida. Phasellus accumsan. Curabitur non ipsum. Aenean rhoncus ultricies libero. Proin viverra ante a lacus. Duis a odio. Nulla tortor. In faucibus convallis elit. Proin vel nulla. Vivamus id augue eget ante auctor pellentesque. Vestibulum orci enim, pharetra at, porta ac, volutpat dignissim, erat. Nulla facilisi. Quisque enim. Vestibulum fermentum condimentum ipsum. Aenean non risus at sapien luctus scelerisque. In hac habitasse platea dictumst. Phasellus a lectus a orci varius suscipit. Sed quis sapien non erat egestas accumsan. Aenean lacinia metus ut orci. Etiam interdum, pede non rhoncus viverra, dui nibh sollicitudin quam, a auctor dui est eu nulla. <br /><br />

t tortor non magna. Phasellus viverra convallis est. Vivamus eget felis. Vestibulum viverra placerat augue. In tempor aliquam metus. Proin condimentum semper elit. chris</div>
<div id="right">Sed suscipit. Pellentesque ultricies, nibh nec eleifend viverra, augue odio eleifend urna, ut malesuada leo nunc et enim. Pellentesque lorem. Duis pretium nisl et mauris. Cras feugiat nunc id lorem. Maecenas in lectus ut lectus interdum elementum.
<br /><br />
Nam quis leo blandit justo pharetra porta. Aenean consequat posuere sem. Donec euismod, lorem a condimentum viverra, felis felis tempor sapien, ut mollis metus magna et urna. Donec nulla. Donec mauris tortor, sodales a, dapibus nec, blandit id, elit. Nulla vitae libero. Suspendisse sed justo. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque velit eros, vehicula convallis, commodo vitae, interdum eu, orci. Nunc vitae nibh. Quisque eu felis a lacus suscipit tempor. Nunc lacinia fermentum dui. Aenean blandit tortor non magna. Phasellus viverra convallis est. Vivamus eget felis. Vestibulum viverra placerat augue. In tempor aliquam metus. Proin condimentum semper elit. <br /><br />
<br /><br /><br /><br /></div>
</div>
<div id="foot">FOOT<div id="corner">Callout Spotlight </div></div></div>
</body>
</html>
CorumMc is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 10-05-2007, 06:51 AM   #2 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania (atm)
Posts: 2,846
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
Is this what you want?

Edit: I mean, this is the way you want it to look like?
Attached Thumbnails
css-first-table-less-site-layout.jpg  
__________________

Last edited by Costin Trifan : 10-05-2007 at 06:55 AM.
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-05-2007, 07:19 AM   #3 (permalink)
Inactive
 
Join Date: 10-05-07
Posts: 4
iTrader: 0 / 0%
Latest Blog:
None

CorumMc is liked by many
No, unfortunately as I was able to do that.

The layout design has the callout more of a corner element. Same width as column 2 but placed in the bottom left corner.

Here's a shot of one of the comps.

Thanks
Attached Thumbnails
css-first-table-less-site-test.gif  
CorumMc is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-05-2007, 11:51 AM   #4 (permalink)
Inactive
 
Join Date: 10-05-07
Posts: 4
iTrader: 0 / 0%
Latest Blog:
None

CorumMc is liked by many
Sorry; Right corner...

Dyslexia strikes again Don't see an option to edit. Is there a time limit for it in the forum?
CorumMc is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-05-2007, 01:52 PM   #5 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania (atm)
Posts: 2,846
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
well, I don't get it... maybe I'm missing something here, but I doubt that...
because your preview shows exactly the way you wanted your page to look like...

I added the previews from IE and Firefox. As you can see, they're the same...

**btw, the time limit to edit your posts is 30 minutes
Attached Thumbnails
css-first-table-less-site-layout_ie.jpg  css-first-table-less-site-layout_ff.jpg  
__________________
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-08-2007, 06:24 AM   #6 (permalink)
Inactive
 
Join Date: 10-05-07
Posts: 4
iTrader: 0 / 0%
Latest Blog:
None

CorumMc is liked by many
Quote:
Originally Posted by Costin Trifan View Post
well, I don't get it... maybe I'm missing something here, but I doubt that...
because your preview shows exactly the way you wanted your page to look like...

I added the previews from IE and Firefox. As you can see, they're the same...

**btw, the time limit to edit your posts is 30 minutes
Based on you're post I tried the code from home in IE7 and it worked there for me just as it does in FireFox. But it still displays incorrectly (in the screnshot) in several IE6's here.
Thanks for the responses.
Attached Thumbnails
css-first-table-less-site-ie6.gif  
CorumMc is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-08-2007, 07:16 AM   #7 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania (atm)
Posts: 2,846
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
The footer looks bigger in the IE6 screenshot. Have you been modifying its height?
__________________
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Showing data from a table based on infos from another table! anarchoi Coding Forum 0 06-16-2007 04:58 PM
table help mtaylor314 Coding Forum 3 05-01-2007 10:37 AM
Table or Div Jordonias Web Design Lobby 25 08-09-2006 10:47 AM
CSS Table-less madeinacari Coding Forum 4 04-19-2006 12:23 PM
CSS on one table thepartydj Coding Forum 9 01-05-2005 08:03 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 07:57 AM.
© Copyright 2008 V7 Inc


Search Engine Optimization by vBSEO 3.1.0 ©2007, Crawlability, Inc.