IE, why do you always do this to me?
Hi all,
Hope everyone had a great weekend first and that the weather was warm and sunny .
Iv got another question that you guys probably would find a breeze to answer but i can't seem to sort it out myself.
My site found at vladmihalache.com iv managed to make look reasonable in most browsers except for...yep you guessed it...IE.
For some reason there is a gap below the header and the bottom footer doesnt line up properly.
If anyone would be kind as to have a look at this monstrosity i would appreciate it very much.
On a brighter note i am starting to fix quite a few problems myself on some of my other pages that will eventually link up to my site above.
I'm learning very slowly but getting there and hopefully soon i will be able to help other people since thats 1 reason this forum was made...Right.
Anywayz goodnight, sleep tight
JeevesBond posted this at 23:08 — 14th July 2008.
He has: 3,956 posts
Joined: Jun 2002
I got it working by moving the banner into the table cell on line 11. It broke some other stuff though. header16.jpg needs to have the sides trimmed and the
padding
needs to be removed from.border
To be honest I'm not sure what's causing the problem in the first place. It could be IE's weird behaviour around whitespace (spaces, returns and tabs), or just some default padding/margins on tables that need to be disabled.
For me, looking at the code: it's not much fun to work on code that uses tables for layout. You're obviously still learning, and that's cool, but you might get more interest and help if you try to use CSS controlled layouts. Don't worry about it straight away, but learning XHTML+CSS is definitely something to put on your list of stuff to do.
a Padded Cell our articles site!
vladmm (not verified) posted this at 17:53 — 15th July 2008.
They have: 5,633 posts
Joined: Jan 1970
Thanks for taking a look, ireally appreciate you taking your time to assist in sorting out my mess.
PS: Is there any way to have a part of the code specifically for 1 browser type(ie:IE) but that will be ignored by other browsers so that, that piece of code will only be used by 1 specific browser. Hope that makes sence.
thanks
webwiz posted this at 21:43 — 15th July 2008.
He has: 629 posts
Joined: May 2007
You may find Internet Explorer's Conditional Comments useful.
decibel.places posted this at 00:21 — 16th July 2008.
He has: 1,494 posts
Joined: Jun 2008
I avoid CSS hacks precisely because they are likely to evaporate in future browser releases.
I prefer using browser sniffing code and changing the styles on the fly with JavaScript.
Yes, some people have JavaScript turned off - and they are used to seeing weird lookin sites.
Furthermore, I take some time to write code that is cross-browser compatible without hacks or adjustments whenever possible.
greg posted this at 01:21 — 16th July 2008.
He has: 1,581 posts
Joined: Nov 2005
thanks
You can determine what browser people are using with a script (PHP, JS etc) and serve them CSS or content depending on what the result of the check is. But that's a lot of work for what it is worth.
Some people do this, but IMO it's not really worth it, unless perhaps the site is some sort of showcase for webmaster abilities (etc).
As you learn more about CSS and the different browser requirements, you will learn to work around the various issues and differences between each browser, and make code that will work well on all browsers.
This does occasionally mean you have to compromise, and sometimes have layout or a style not quite the way you would have liked it. Although that is not very often.
I avoid using any hacks of any knd, as browsers get updated, changed and develop the hacks no longer work, or return different results.
Hacks are exactly that, a hack. They work by doing something that is not within the browsers true design and intended usage, so they get updated to "resolve" the hack issues. As such I don't think they can be relied on.
webwiz posted this at 06:31 — 18th July 2008.
He has: 629 posts
Joined: May 2007
Wise words.
It's okay to "hack the dead" though. Ancient browsers are not likely to change. Of course, conditional comments let you avoid hacking IE anyway.
What is your opinion on browser-specific CSS properties, like Microsoft's "zoom" and "filter"?
Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;
decibel.places posted this at 03:26 — 19th July 2008.
He has: 1,494 posts
Joined: Jun 2008
I don't use IE only properties - unless there is an equivalent for others...
ie (so to speak)
filter:alpha(opacity=50);
andopacity: 0.5;
(and-moz-opacity:0.5;
... and - oh well)Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.