logo       

Re: Netscape inline style: msg#01260

Subject: Re: Netscape inline style
Sent by Hassan Schroeder on 30 September 2002 00:12:

>>>I believe that it can handle some inline styles and not others... 
>
> I've never seen this, and I still do a lot of work for a client
> with an all-NS4 intranet, but ...

Trust me, that's clearly the issue.  With inline styles, Netscape
completely loses it.  Take them out, and it's looks like it's supposed
to.


>> So, if I float an image in a news article, I must set a width.
Problem
>> is, these are PHP templates.  One template fits all.  There's no way
the
>> style sheet will know what the width of the image is before it's
called.
>> 
>> I've been setting everything but the width in the CSS, then setting
the
>> width inline.
>> 
>> Any alternatives?
>
> Use PHP's image-resizing function to make all the images the same
> width? Might be the easiest ...

Not really practical for us.

Am I correct that floated divs NEED widths? What are the repurcussions
of not having it.  I had the same issue with a floated img - and I took
the width out and everything still looked fine in IE5/6 and NN6.  What
if I do that for the DIV?  Guess I'll have to check.

My other alternative is to send the template a variable that adds a
width to the image class, that would go inside a <style></style> block.

In other words ...

$extrastyle=".storyimage { width: $imagewidth }";

And put that inside a style block -- which would add onto what's already
in the style sheet. This actually works, believe it or not.

Adam W.

_______________________________________________
css-discuss [css-discuss@xxxxxxxxxxx]
http://three.pairlist.net/mailman/listinfo/css-discuss
Sponsored by www.westciv.com - CSS resources | software | learning



<Prev in Thread] Current Thread [Next in Thread>