Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > css bug in IE: circumvention, anybody?

Reply
Thread Tools

css bug in IE: circumvention, anybody?

 
 
Els
Guest
Posts: n/a
 
      06-26-2005
Greg N. wrote:

> Els wrote:
>
>> Greg N. wrote:
>>> but how about browsers that don't understand CSS
>>>at all?

>>
>> Like which?
>>

> like, say, netscape v4? Are you telling me those have become so rare I
> should no longer bother? I'd like that.


1) indeed, you shouldn't bother (personal opinion though)
2) even NN4 understands enough CSS to get a background picture to
display.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: The Cure - Close To Me (Acoustic)
 
Reply With Quote
 
 
 
 
Lauri Raittila
Guest
Posts: n/a
 
      06-26-2005
in alt.html, Greg N. wrote:
> Els wrote:
>
> > Greg N. wrote:
> >> but how about browsers that don't understand CSS
> >>at all?


Not too usual, but they do handle CSS way much better. I doubt there will
be any exeptions, IE3 and NN2-3 might work better with your try, but they
are pretty dead...

I don't know about IE4, but I doubt it has serious bug here...

> like, say, netscape v4? Are you telling me those have become so rare I
> should no longer bother? I'd like that.


When you do it right way, all you can lost is clipping, and tiling. Does
it really matter if those don't work in NN4. If you want, you can look it
in NN4 and then hide css if it looks bad.

OTOH, using good HTML makes it work better on some other browsers.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Kohtuuhintainen yksiö/huone haussa Oulusta syyskuusta eteenpäin.
Searching places to sleep on axis Bonn - Tsech - Poland - baltic sea in
july
 
Reply With Quote
 
 
 
 
Greg N.
Guest
Posts: n/a
 
      06-26-2005
Lauri Raittila wrote:

> And very nice indeed.


hey, thanks!

> Is it application, in sence that you have some program
> that you use to output it? I would be really interested...


The mechanics are all coded in PHP. I run all pages through the
interpreter locally, and upload the resulting HTML.

The intent is to keep the source as simple as possible. My pages use a
very limited number of php functions and a very limited set of html. My
source code for a typical page looks like this:
--------------------------------------------------------
<?php
$h1 = "header 1 text";
$h2 = "header 2 text";
$h3 = "header 3 text";
?>
<?php include "header.ph" ?>
<p>some text
<?php img('img/050521/i2436.jpg', 'class=right') ?>
<h4>a h4 title</h3>
<p>some more text
<?php img('img/050521/i2436.jpg', 'class=left') ?>
<p>again some more text
<?php banner('img/050522/i2442.jpg') ?>
<p>and again some more text
<?php include "trailer.ph" ?>
--------------------------------------------------------

My php functions and includes do all the back-breaking work, like
determining the image height and width, finding out if a large version
of the thumbnail exists, inserting the appropriate link to the blow up
page.
 
Reply With Quote
 
Greg N.
Guest
Posts: n/a
 
      06-27-2005
Lauri Raittila wrote:

> Of course, you could do it so that snipping happens from both ends, if
> the most important part is in the middle, using CSS.



how would you do that?
 
Reply With Quote
 
Lauri Raittila
Guest
Posts: n/a
 
      06-27-2005
in alt.html, Greg N. wrote:
> Lauri Raittila wrote:
>
> > Of course, you could do it so that snipping happens from both ends, if
> > the most important part is in the middle, using CSS.


> how would you do that?


Using negative margins, for basically:

a {display:block;overflow:hidden;text-align:center;}
img {margin:0 -100px}

<a><img></a>

On wide screen it won't be starting from left, trough. For that, more
complex structure is needed:

div {overflow:hidden}
a {display:block;width:<img-size+100px>;align:center;}
img {margin-left:-100px}

<div><a><img></a></div>

For IE, you need to set width:100% here and there.

URL:
http://www.student.oulu.fi/~laurirai/www/css/clipimage/



--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Kohtuuhintainen yksiö/huone haussa Oulusta syyskuusta eteenpäin.
Searching places to sleep on axis Bonn - Tsech - Poland - baltic sea in
july
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
*bug* *bug* *bug* David Raleigh Arnold Firefox 12 04-02-2007 03:13 AM
CSS Layout question - how to duplicate a table layout with CSS Eric ASP .Net 4 12-24-2004 04:54 PM
Set CSS property equal to another CSS property? Noozer HTML 10 10-13-2004 09:20 PM
Is there a way to set the a CSS property to be explicitly the same as another CSS property? Joshua Beall HTML 1 12-10-2003 07:21 PM
print.css and screen.css tom watson HTML 1 09-09-2003 02:48 PM



Advertisments