Forum Moderators: not2easy

Message Too Old, No Replies

CSS span class vs. style in Konqueror

Unusual problem

         

Oaf357

11:31 pm on Jun 26, 2003 (gmt 0)

10+ Year Member



When position an object in a few pages across my site I use a span of "float:right;width:125px". As an inline style it seems to work great in all browsers (even NS 4.78). But, the second I make it a class (.xxx {float:right;width:125px}) in my stylesheet and use <span class="xxx">...</span> it doesn't work anymore in Konqueror.

Any ideas?

pageoneresults

11:41 pm on Jun 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What is the name of the class?

float:right;width:125px}

That should probably look something like this...

.fr{float:right;width:125px;}

and then <span class="fr">Float right content here.</span>

Oaf357

11:49 pm on Jun 26, 2003 (gmt 0)

10+ Year Member



.name{float:right;width:125px}

That's how I had it and for whatever reason Konqueror hated it.

However, as an inline style, it works fine.

DrDoc

2:10 am on Jun 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Maybe it's picky about the last rule ending with a semicolon? It shouldn't be, but you never know...

Oaf357

3:32 am on Jun 27, 2003 (gmt 0)

10+ Year Member



I thought that and tested it and that wasn't the case. I changed it to a DIV but browsercam.com is down so I can't really test it.

DrDoc

4:16 am on Jun 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried using a different name for the class? "name" is very generic, which might cause the confusion.

Oaf357

4:33 am on Jun 27, 2003 (gmt 0)

10+ Year Member



It's not actually name. I don't want to get too specific.

mack

4:56 am on Jun 27, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Konquiror appears to be very un-forgiving when it comes to CSS. I use the konki browser quite a lot and I often find pages that just dont render properly.

Mack.

Oaf357

5:33 am on Jun 27, 2003 (gmt 0)

10+ Year Member



Well I e-mailed the Konqueror CSS guru. Maybe he can shed some light on the subject.

I've always heard that Konqueror adheres to standards fairly well.

Safari is also based on KHTML (this float renders fine in Safari).

Oaf357

7:11 pm on Jun 27, 2003 (gmt 0)

10+ Year Member



Well. I have no idea what the deal was but for whatever reason, the ID works now. Thanks for the response.