3 Replies - 745 Views - Last Post: 29 September 2009 - 09:39 AM

#1 Dannyboy997  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 64
  • View blog
  • Posts: 258
  • Joined: 17-April 09

CSS is always changes in different browsers?

Posted 28 September 2009 - 04:43 PM

hi, for some reason my css code doesn't look the same in different browsers i originally make it for firefox but when i test it in IE its all screwed up. nothing is the same in different browsers.

i've looked in some website's code and i saw:

<!--[if IE] -->
<link rel="stylesheet" href="css/index.css" type="text/css" />
<!--[end if] -->

is this right????

because then i could create the exact code with the exact specification!


thanks!

Is This A Good Question/Topic? 0
  • +

Replies To: CSS is always changes in different browsers?

#2 markhazlett9  Icon User is offline

  • Coding is a lifestyle
  • member icon

Reputation: 60
  • View blog
  • Posts: 1,666
  • Joined: 12-July 08

Re: CSS is always changes in different browsers?

Posted 28 September 2009 - 07:45 PM

This is one of the biggest pain's about web development... all browsers have different rendering engine's and will therefore display data differently in different situations. For the most part there are fixes for things like IE transparency and things like that. So basically just code it for one browser then start to fix it for all the other major ones until it looks relatively the same in all browsers. Hope this helps

Cheers
Was This Post Helpful? 0
  • +
  • -

#3 Dannyboy997  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 64
  • View blog
  • Posts: 258
  • Joined: 17-April 09

Re: CSS is always changes in different browsers?

Posted 28 September 2009 - 08:00 PM

thanks! then i'll worry about the other browsers later on!
Was This Post Helpful? 0
  • +
  • -

#4 W3bDev  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 42
  • View blog
  • Posts: 379
  • Joined: 15-March 09

Re: CSS is always changes in different browsers?

Posted 29 September 2009 - 09:39 AM

Yes, this the main downside to development... not only is there testing, but you have to test for not a couple OS's but half a dozen browsers that are "currently popular"... One note though, if you try to code strictly in xHTML and learn the safe ways of coding within CSS, you will eventually learn the do's and don't when programming pages.

Good Luck!

This post has been edited by W3bDev: 29 September 2009 - 09:40 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1