Noobish question regarding IE css "hacks"

This is a discussion on "Noobish question regarding IE css "hacks"" within the Web Page Design section. This forum, and the thread "Noobish question regarding IE css "hacks" are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Mar 25th, 2008, 10:58
New Member
Join Date: Mar 2008
Location: Scotland
Age: 21
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Noobish question regarding IE css "hacks"

Hi everyone, I hoe you are all well.

I am requesting some assistance with my CSS due to problems with how IE is rendering my website. I was foolish enough to use only firefox to test my website when I was creating it, and now I have seen it in IE I would really like to sort it out... however the method I have been told to use is not working at all...

I ultimatly wanted to get it looking the same in IE as it looks in firefox but after trying to change some of the values with no effect I decided to do some simple testing to see if the method was working at all (I tried changing the background of the div that is causing me hassle and it didn't change at all) and found it was 100% unresponsive to my changes.

I would be grateful if someone had the time to look over my website and see what you think the problem might be and suggest a more effective solution to my problems. My website is http://www.danielalexanderreid.com

Thank you all in advance!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Mar 25th, 2008, 11:12
welshstew's Avatar
Site Admin

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,709
Blog Entries: 14
Thanks: 3
Thanked 33 Times in 31 Posts
Re: Noobish question regarding IE css "hacks"

Hi Daniel,

you really shouldn't use hacks, but rather browser specific style sheets. these can be achieved through the use of conditional comments:
http://www.quirksmode.org/css/condcom.html

have a go at that and klet us know how you get on.

Also if you look at these tools: http://www.webforumz.com/beginner-re...dd-ons-for.htm then you will find on efor FF called IE tab, this allows you to see how your site will look in IE without having to install it directly. very handy for testing.

Stew
__________________
WelshStew Site Admin
If you think I've helped, click the "Thanks"
tierney rides tboard - uk site | xtreme wales - extreme clothing
WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Mar 25th, 2008, 11:14
Aso's Avatar
Aso Aso is offline
Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,341
Blog Entries: 2
Thanks: 11
Thanked 49 Times in 46 Posts
Re: Noobish question regarding IE css "hacks"

Hey Daniel

The problem lies in your CSS errors. You must ensure that each declaration ends in a semi-colon before the next, even if they are on separate lines.

Also, // is not a valid CSS comment. You must always enclose comments using /* and */.

Lastly, there is no property align in CSS. Instead, you use text-align for containers, and float for elements (read up on floats).

In fact, you shouldn't even be using tables at all. There's no need. Use <div>'s instead and style them accordingly.

I would also recomend doing a 'universal' reset, so that all browsers start off equal (each browser will apply it's own default padding and margins if unspecified). Use:
Code: Select all
* {
margin: 0;
padding: 0
}
This resets all tags (using the wildcard *) to zero margins and paddings. Put this at the very start of your CSS, then you can override it later if need be.

(Another hint: you can just use 0 instead of 0px - they're the same).
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Mar 25th, 2008, 11:25
New Member
Join Date: Mar 2008
Location: Scotland
Age: 21
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Noobish question regarding IE css "hacks"

Stew, Thanks for that link! That was the exact kind of thing I was looking for to begin with but google failed me and suggested the "hacks" to me instead hehe...

aso186, Thanks for the guidance, I did try to get everything looking right using divs but I have to admit I gave up very quickly because the learning curve seemed too steep to do something that i could already create using tables... lazy I know but I am on a deadline so I just went with my gut feeling! Once this project is out the way I do plan on sitting down with a book or even just the vast amount of examples and tutorials online and learn how to use CSS more efficiently.

Thanks again!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Mar 25th, 2008, 11:33
welshstew's Avatar
Site Admin

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,709
Blog Entries: 14
Thanks: 3
Thanked 33 Times in 31 Posts
Re: Noobish question regarding IE css "hacks"

if you start here:
http://www.webforumz.com/beginner-re...how-to-use.htm
and here:
http://www.webforumz.com/beginner-re...ml-and-css.htm
then you should get a good foothold on css

good luck
__________________
WelshStew Site Admin
If you think I've helped, click the "Thanks"
tierney rides tboard - uk site | xtreme wales - extreme clothing
WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

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

BB 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
Creating a "tag" system to find relevant "related" pages MrQuestions PHP Forum 3 Mar 20th, 2008 23:06
[SOLVED] Show "Image" Depends On User "Status"? Monie Classic ASP 6 Oct 16th, 2007 01:22
? IS "meta name="robots" content="?" necessary in pages ? Love2Java Starting Out 6 Aug 8th, 2007 13:48
window.opener.document["nameForm"].getElementById("someid").value; doesnt work drpompeii JavaScript Forum 0 Feb 17th, 2007 23:09
Useful CSS "hacks" - Post any you have! rpgfan3233 Web Page Design 6 Oct 29th, 2005 14:51


All times are GMT. The time now is 21:21.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42