This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > December 2003 > IE living up to its reputation...





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author IE living up to its reputation...
Frostillicus

2003-12-30, 9:29 am

I recently decided to do a web page, and this time decided to get with the
times and use CSS to its fullest potential... BUT, I am having great
difficulty getting IE to do as it is told... Consider the following page:
http://marc.fearby.com/cssproblem.htm

In Mozilla, the space between the items in the navigation DIV is as it
should be
In IE, the space between the items is much greater...

I've done all I can to specify margin and padding values but to no avail.
I'm almost going bald from pulling my hair out on this one. Any help would
be greatfully appreciated.


Oh, and if anyone is feeling particularly benevolent, any ideas why 1) IE
puts a carriage return after the "asdfasdf" link in the navigation box and
2) why both Mozilla and IE display the "asdfasdf" link smaller, even though
it is 0.7em like the rest of the text in that box? The "div.linkbox"
selectors are the pertinent styles to look at.

Thanks HEAPS :-)


Neal

2003-12-30, 2:31 pm


"Frostillicus" <frostillicus@iinetnilspamos.net.au> wrote in message
news:3ff170a5$0$1754$5a62ac22@freenews.iinet.net.au...
quote:

> I recently decided to do a web page, and this time decided to get with the
> times and use CSS to its fullest potential... BUT, I am having great
> difficulty getting IE to do as it is told... Consider the following page:
> http://marc.fearby.com/cssproblem.htm
>
> In Mozilla, the space between the items in the navigation DIV is as it
> should be
> In IE, the space between the items is much greater...
>
> I've done all I can to specify margin and padding values but to no avail.
> I'm almost going bald from pulling my hair out on this one. Any help would
> be greatfully appreciated.
>
>
> Oh, and if anyone is feeling particularly benevolent, any ideas why 1) IE
> puts a carriage return after the "asdfasdf" link in the navigation box and
> 2) why both Mozilla and IE display the "asdfasdf" link smaller, even


though
quote:

> it is 0.7em like the rest of the text in that box? The "div.linkbox"
> selectors are the pertinent styles to look at.
>
> Thanks HEAPS :-)
>
>


I'm using IE and Opera on it now.

It's gotta be the list. IE puts extra padding in there, but you've set it
all to 0. Looks to me like it should be working. Hmm... try setting
line-height on the li elements. Shot in the dark.

And I cannot figure out the reason the a link is smaller. Try making some of
the other list items links, see if that's it. Try zeroing out margins and
padding on the div.linkbox a selector.

But what I do notice... and knowing you're new to CSS...

1) Why more than one h1? Pick one to be the h1, make the others h2, it'll
look better in text. Only one h1 per page. And don't include the crumbs in
the h1. You can style them to look like it, but they're not really part of
the heading, are they?

2) In the text version, all lowercase headers sometimes looks dumb, though
it works great in your CSS layout. If you agree, type it with normal
capitalization and style it {text-transform: lowercase;}.

3) Put your style element within the head element. It's not valid XHTML
unless they're in up there.


e n | c k m a

2003-12-30, 6:30 pm

> I recently decided to do a web page, and this time decided to get with the
quote:

> times and use CSS to its fullest potential... BUT, I am having great
> difficulty getting IE to do as it is told... Consider the following page:
> http://marc.fearby.com/cssproblem.htm



Validate the page first.

URL:http://validator.w3.org/check?verbo.../cssproblem.htm

You should also note that your <style> is outside the <head> element when it
should be _inside_ the <head> element.

Regards,
Nick.


Frostillicus

2003-12-30, 8:29 pm

> I'm using IE and Opera on it now.
quote:

>
> It's gotta be the list. IE puts extra padding in there, but you've set it
> all to 0. Looks to me like it should be working. Hmm... try setting
> line-height on the li elements. Shot in the dark.



Thanks for the suggestion. I tried specifying the height of the li elements
manually in the link now called "Manual style override" but this still
didn't work. Having seen another reply to my message, I'm now doing it the
way w3.org are, and it's working much better. The only reason I chose lists
was because of this article I saw:
http://www.alistapart.com/articles/slashdot/
quote:

> And I cannot figure out the reason the a link is smaller. Try making some


of
quote:

> the other list items links, see if that's it. Try zeroing out margins and
> padding on the div.linkbox a selector.
>
> But what I do notice... and knowing you're new to CSS...



I'm not new to CSS, but I am new to trying to do everything in CSS to avoid
using tables to space everything out
quote:

> 1) Why more than one h1? Pick one to be the h1, make the others h2, it'll
> look better in text. Only one h1 per page. And don't include the crumbs in
> the h1. You can style them to look like it, but they're not really part of
> the heading, are they?



I was intending to put the crumbs in H1 - mainly because no matter how much
time I spend trying to create a heading it just looks stupid and since I
have no artistic talent, I though "to hell with it, I'll just make the
breadcrumbs my heading" ...for now, at least.
quote:

> 2) In the text version, all lowercase headers sometimes looks dumb, though
> it works great in your CSS layout. If you agree, type it with normal
> capitalization and style it {text-transform: lowercase;}.



I'll try that soon. Thanks.
quote:

> 3) Put your style element within the head element. It's not valid XHTML
> unless they're in up there.



done. It was linked before I uploaded it and only made it an inline style to
make it easier for any good samaritan to quickly see what I was doing
without having to access the stylesheet separately.


Frostillicus

2003-12-30, 8:29 pm

> Validate the page first.
quote:

>
>


URL:http://validator.w3.org/check?verbo....fearby.com/css
problem.htm
quote:

>
> You should also note that your <style> is outside the <head> element when


it
quote:

> should be _inside_ the <head> element.



It is validated now, thanks. I usually avoid w3.org because finding anything
useful on that site is a complete XXXXX (IMHO). Maybe things have now
changed since I last decided never to visit that site again.

Thanks.


Anne van Kesteren

2003-12-31, 8:28 am

Frostillicus wrote:
quote:

> It is validated now, thanks. I usually avoid w3.org because finding anything
> useful on that site is a complete XXXXX (IMHO). Maybe things have now
> changed since I last decided never to visit that site again.



Try the search engine with the right keywords ;-), you will love it!


--
Anne van Kesteren
<http://www.annevankesteren.nl/>
Harlan Messinger

2003-12-31, 11:29 am


"Frostillicus" <frostillicus@iinetnilspamos.net.au> wrote in message
news:3ff21393$0$1754$5a62ac22@freenews.iinet.net.au...
quote:

it[QUOTE][color=darkred]
>
> Thanks for the suggestion. I tried specifying the height of the li


elements
quote:

> manually in the link now called "Manual style override" but this still
> didn't work. Having seen another reply to my message, I'm now doing it the
> way w3.org are, and it's working much better. The only reason I chose


lists
quote:

> was because of this article I saw:
> http://www.alistapart.com/articles/slashdot/
>
some[QUOTE][color=darkred]
> of
and[QUOTE][color=darkred]
>
> I'm not new to CSS, but I am new to trying to do everything in CSS to


avoid
quote:

> using tables to space everything out
>
it'll[QUOTE][color=darkred]
in[QUOTE][color=darkred]
of[QUOTE][color=darkred]
>
> I was intending to put the crumbs in H1 - mainly because no matter how


much
quote:

> time I spend trying to create a heading it just looks stupid and since I
> have no artistic talent, I though "to hell with it, I'll just make the
> breadcrumbs my heading" ...for now, at least.



The logical main heading of the page is "Subcategory". You can use whatever
font, effects, and letter spacing you want for it. You don't need to be an
artistic genius for this!


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews