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
Not sitting write on the page
Old 04-21-2007, 07:35 PM Not sitting write on the page
Extreme Talker

Posts: 188
Trades: 0
This is a first for me!!!!!! It fully works in IE5/6 just the way I want it but not in firefox and opera (usually always the other way around).

Here is the mock up: http://mstd.eu/tippingpoint/index.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>Untitled Document</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {color: #6995c0}
-->
</style>
</head>

<body>

<div id="top">
<p align="right">01962 842836</p>
</div>

<div id="title">
<p>The<span class="style1">Tipping</span>Point</p>
</div>

<div id="tagline">
<p><span class="style1">Realising</span>Potential</p>
</div>

<div id="splash">
<img src="images/splash.jpg" alt="splash image" />
</div>

<div id="nav">
<p align="center">Home | About Us | Our Customers | Solutions | Examples | Pharmacy | Links | Contact</p>
</div>

</body>
</html>
Code:
body {
    background-color: #FFFFFF;
    background-image: url(../images/bk.jpg);
    background-repeat: repeat-x;
    margin-top: 10px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    width: 770px;
    font-family: "Courier New", Courier, monospace;
}

#top {
    height: 36px;
    color: #989898;
    font-weight: bold;
}

#title {
    float: left;
    height: 66px;
    width: 510px;
    font-size: 36px;
    font-weight: bold;
    padding-top: 22px;
    color: #6b6b6b;
}

#tagline {
    float: right;
    height: 58px;
    width: 215px;
    font-size: 24px;
    font-weight: bold;
    padding-top: 30px;
    color: #6b6b6b;
}

#splash {
    height: 223px;
}

#nav {
    height: 39px;
    color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding-top: 7px;
}
Any Ideas?
__________________

Please login or register to view this content. Registration is FREE
twiggy is offline
Reply With Quote
View Public Profile Visit twiggy's homepage!
 
 
Register now for full access!
Old 04-22-2007, 12:24 PM Re: Not sitting write on the page
Extreme Talker

Posts: 188
Trades: 0
Still no ideas?
__________________

Please login or register to view this content. Registration is FREE
twiggy is offline
Reply With Quote
View Public Profile Visit twiggy's homepage!
 
Old 04-22-2007, 05:11 PM Re: Not sitting write on the page
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Give your image the proper width and height attributes.
Clear your floats. The #nav is sitting underneath #splash.
__________________
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 04-22-2007, 06:25 PM Re: Not sitting write on the page
Extreme Talker

Posts: 188
Trades: 0
Cleared floats and set width/height on the picture, but still the same.

Perfect in IE 6 but firefox and opera can't display it write I really can't understand it?
__________________

Please login or register to view this content. Registration is FREE
twiggy is offline
Reply With Quote
View Public Profile Visit twiggy's homepage!
 
Old 04-22-2007, 06:50 PM Re: Not sitting write on the page
Banned

Posts: 905
Name: Travel Agent
Trades: 0
It appears this one tag isn't closed properly:

<img src="images/splash.jpg" alt="splash image" width="770"px height="223"px/>
travelagent is offline
Reply With Quote
View Public Profile
 
Old 04-22-2007, 07:08 PM Re: Not sitting write on the page
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Code:
#tagline {    
float: right;    
height: 58px;    
width: 215px;    
font-size: 24px;    
font-weight: bold;    
padding-top: 30px;    
color: #6b6b6b;    
clear: both;
}
Remove the bolded line (the last one). The only time you want to clear floats is when you want to move down to a new horizontal plane (like you did with your splash div) and start fresh.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 04-23-2007, 03:54 PM Re: Not sitting write on the page
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You also shoudn't add 'clear:both' to the floated element - it should either be added as a separately clearing element, or on the element that FOLLOWS the floated item.
__________________
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 04-23-2007, 07:04 PM Re: Not sitting write on the page
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
That's why I bolded it.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Reply     « Reply to Not sitting write on the page
 

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