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
Old 07-05-2009, 02:54 PM Ripping my hair out
hamesy's Avatar
Webmaster Talker

Posts: 639
Name: Steve
Location: Birmingham, England
Trades: 0
I'm ripping my hair out here. I've got a design set out and it works fine in Firefox. But when it comes to Internet Explorer the design is all messed up.

This is what it looks like in FF.
Firefox layout

And this is what it looks like in IE.
Internet Explorer

Also I've got a drop down menu this looks like this when the user hovers over the link.
Click here. But I can't get it working in IE.


HTML
HTML Code:
<html>
<head>
<title>A1 Sparkles</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<center>
<div id="container">
	<div id="header"></div>
	<div id="navigation">
				<ul>
  			<li><a href="index1.php">Home</a></li>

  			<li><a href="about.php">About Us</a>
    		<ul>
    			<li><a href="about.php">About Us</a></li>
    			<li><a href="contact.php">Contact</a></li>
    		</ul>
  			</li>
  			<li><a href="balloonsmain.php">Balloons</a>

   		 <ul>
			<li><a href="balloons.php?id=1">Party Balloons</a></li><li><a href="balloons.php?id=2">Wedding Balloons</a></li><li><a href="balloons.php?id=3">Birthday Balloons</a></li><li><a href="balloons.php?id=4">Balloons - Special Occasions</a></li>   		 </ul>
  			</li>
  			<li><a href="cakesmain.php">Cakes</a>
   		 <ul>
			<li><a href="cakes.php?id=5">Wedding Cakes</a></li><li><a href="cakes.php?id=6">Birthday Cakes</a></li><li><a href="cakes.php?id=7">Cakes - Special Occasions</a></li>   		 </ul>

  			</li>
  			<li><a href="flowersmain.php">Flowers</a>
   		 <ul>
			<li><a href="flowers.php?id=8">Wedding Flowers</a></li><li><a href="flowers.php?id=9">Birthday Flowers</a></li><li><a href="flowers.php?id=10">Flowers - Special Occasions</a></li>   		 </ul>
  			</li>
  			<li><a href="contact.php">Contact</a>

  			</li>
		</ul>
	</div>

	<div id="content">
	<div id="main">
	<h1>Welcome to A1 Sparkles</h1>

	<p>We are the premier providers of Balloons, Cakes and Flowers. Our goal is to provide you the very best quality and price where possible, our quality control is of the highest standards and our personal touch makes us all the different, we are among the best and aim to stay that way. We like to provide you with piece of mind, allowing your event to be as stress free as possible which is of paramount importance.</p>

	<p><strong>Services available</strong>
	<br>Celebration/wedding cakes
	<br>Fresh/luxury silk flowers
	<br>Balloons
	<br>Personalised foil Balloons
	<br>Wedding bouquets
	<br>Gift wrapping service
	<br>Table dressing service
	<br>Favours
	<br>Personalised ribbons
	</p>

	<p>Our company is based in Walsall in the West Midlands and you can contact us on 01922 746596 or 07722 612651</p>

	<p>Monday - Saturday from 9am - 5pm (Free local consultations may be arranged upon request).</p>
	<p>Please feel free to browse this site, should you have any questions about any of our products or services or simply need more information and want to contact us, click on the contact button and mail us your questions.</p>
	<p>Thank you for visiting and we look forward to assisting you with our forth coming event.</p>
	</div>

	<div id="gal">
	<h4>Our products</h4>
<p>Below is just a sample of our work. If you would like to see more of our work, click on the relevent sections above.</p>
<a href="#" onClick="window.open('images/3tier20birthday.jpg', 'WindowC', 'width=650, height=500,scrollbars=yes');"><img src="images/3tier20birthday.jpg" id="imggal"></a>
<a href="#" onClick="window.open('images/S1030357.JPG', 'WindowC', 'width=650, height=500,scrollbars=yes');"><img src="images/S1030357.JPG" id="imggal"></a>
<a href="#" onClick="window.open('images/kim.JPG', 'WindowC', 'width=650, height=500,scrollbars=yes');"><img src="images/kim.JPG" id="imggal"></a>

	</div>
		<div id="footer">
		&copy; Copyright 2009 A1 Sparkles
	</div>
	</div>
</div>
</center>
</body>
</html>
CSS
HTML Code:
body
{
background-color: #c1ecf4;
font-family: Arial, Verdana;

}

#container
{
width: 985px;
}

#header
{
background-image: url('images/header2.jpg');
height: 195px;
width: 985px;
border-top: 1px solid;
border-left: 1px solid;
border-right: 1px solid;
}

#navigation
{
height: 31px;
background-color: #65b2df;
width: 985px;
border: 1px solid;

}

#content
{
width: 975px;
border-left: 1px solid;
border-right: 1px solid;
border-bottom: 1px solid;
background-color: #6BBDEC;
padding: 5px;
position:absolute;
z-index:-1;
}

#main
{
background-color: #FFFFFF;
float: left;
width: 680px;
height: auto;
border: 1px solid;
background-image: url('images/background.jpg');
padding: 10px;
}

#gal
{
background-color: #FFFFFF;
float: right;
width: 210px;
height: auto;
border: 1px solid;
font-size: 15px;
padding: 10px;
}

#footer
{
clear: both;
position: bottom;
}

#img
{
border: 0px;
height: 190px;
width: 220px;
}

#imggal
{
border: 0px;
height: 140px;
width: 164px;
}

ul
{
font-family: Arial, Verdana;
font-size: 17px;
margin: 0;
padding: 0;
list-style: none;
}

ul li 
{
display: block;
position: relative;
float: left;
}

li ul { display: none; }

ul li a 
{
display: block;
text-decoration: none;
color: #ffffff;
border-top: 1px solid #ffffff;
padding: 5px 54px 5px 54px;
background: #01a2ff;
margin-left: 1px;
white-space: nowrap;
}

ul li a:hover { background: #008ad9; }

li:hover ul 
{
display: block;
position: absolute;
}

li:hover li 
{
float: none;
font-size: 11px;
}

li:hover a { background: #008ad9; }

li:hover li a:hover { background: #1AABFF; }

h1
{
font-size: 20px;
color: #8a1616;
}

h4
{
color: #8a1616;
}
These two problems are the only ones I can't fix, so if anyone can point me in the right direction I will be grateful.
__________________
Hamesy

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


Please login or register to view this content. Registration is FREE
hamesy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-05-2009, 04:26 PM Re: Ripping my hair out
Junior Talker

Posts: 4
Name: Bob
Trades: 0
Use an IE conditional statement. It will detect whether the user is using IE and switch to a different stylesheet like this:

Code:
<!--[if IE]> <style type="text/css">@import "IE-override.css";</style> <![endif]-->
More info - http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
Krono is offline
Reply With Quote
View Public Profile
 
Old 07-05-2009, 05:17 PM Re: Ripping my hair out
AD7863's Avatar
Major Geek

Posts: 435
Name: Artful Dodger
Location: England, UK
Trades: 0
Yes do what Krono said, it will help you alot, then all you have to do is make another CSS style and adjust it so it looks right in IE
__________________

Please login or register to view this content. Registration is FREE
AD7863 is offline
Reply With Quote
View Public Profile Visit AD7863's homepage!
 
Old 07-06-2009, 09:25 AM Re: Ripping my hair out
hamesy's Avatar
Webmaster Talker

Posts: 639
Name: Steve
Location: Birmingham, England
Trades: 0
Quote:
Originally Posted by Krono View Post
Use an IE conditional statement. It will detect whether the user is using IE and switch to a different stylesheet like this:

Code:
<!--[if IE]> <style type="text/css">@import "IE-override.css";</style> <![endif]-->
More info - http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
Quote:
Originally Posted by AD7863 View Post
Yes do what Krono said, it will help you alot, then all you have to do is make another CSS style and adjust it so it looks right in IE
Thank you guys Managed to get the layout formatted correctly now.

Still working on the dropdown menu though. May have got something working using tyhe whatever:hover script, but its hacked together.
__________________
Hamesy

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


Please login or register to view this content. Registration is FREE
hamesy is offline
Reply With Quote
View Public Profile
 
Old 07-06-2009, 10:42 AM Re: Ripping my hair out
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
The whatever:hover is what you're going to need. IE6 and below do not support the hover pseudo-class on anything except the <a> tag.
__________________
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
 
Reply     « Reply to Ripping my hair out
 

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