Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-04-2012, 10:37 AM   PM User | #1
fightapilotdean
New Coder

 
Join Date: Mar 2012
Location: Leicester
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
fightapilotdean is an unknown quantity at this point
Question CSS Styling Problem

Hi all,
I am having a little issue with css for my site, when I access the site in Google Chrome it all appears fine, formatted and set out how I want it to look, but if I then go onto Internet Explorer the CSS has no effect and the page displays without all the formatting from the CSS, does anybody have any ideas what could be wrong?
The main problem is the margin and padding for my buttons. If anyone could help it would be much appreciated
fightapilotdean is offline   Reply With Quote
Old 12-04-2012, 11:19 AM   PM User | #2
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,827
Thanks: 9
Thanked 685 Times in 679 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
Can you post a link to your site?
SB65 is offline   Reply With Quote
Old 12-05-2012, 10:35 AM   PM User | #3
fightapilotdean
New Coder

 
Join Date: Mar 2012
Location: Leicester
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
fightapilotdean is an unknown quantity at this point
site link

link to site http://findfriends.webatu.com/
the css file is at http://findfriends.webatu.com/css/main.css
thanks for any help in advance !
it works displays 95% fine in all other browsers apart from when you zoom in / out (Google Chrom, Opera, Firefox) but in internet explorer it has near to no formatting

Last edited by fightapilotdean; 12-05-2012 at 10:39 AM.. Reason: add extra details
fightapilotdean is offline   Reply With Quote
Old 12-05-2012, 02:07 PM   PM User | #4
rameezzahid
New Coder

 
Join Date: Nov 2012
Location: new york
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
rameezzahid is an unknown quantity at this point
because my friend in Internet explorer you need to be careful to get the result of your css as you get it other browser. That's why we use separate style sheet for IE to follow its Structural requirement.
rameezzahid is offline   Reply With Quote
Old 12-05-2012, 03:11 PM   PM User | #5
tracknut
Regular Coder

 
Join Date: Aug 2006
Posts: 906
Thanks: 4
Thanked 212 Times in 211 Posts
tracknut is an unknown quantity at this point
You always need a DOCTYPE in your code. So make the top look like this:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link href="css/main.css" rel="stylesheet" type="text/css">
<title>findFriends - A new social Network</title>
</head>
<body>
....
Then be sure to close out the body and html tags at the bottom:
Code:
....
</body>
</html>
That will probably do it. The validator is your friend to help find bugs!

There should be no need for separate style sheets for IE, unless perhaps you're trying to make this work in IE6/7.

Dave
tracknut is offline   Reply With Quote
Reply

Bookmarks

Tags
css, internet explorer

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 08:20 PM.


Advertisement
Log in to turn off these ads.