Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Position Absolute IE 5.5 vs. IE 6.0 3

Status
Not open for further replies.

CliveC

Programmer
Nov 21, 2001
1,222
US
Using the code below with IE 5.5 my images look like
image 1 image 2
image 3 image 4
which is what I want. However IE 6.0 seems to ignore the
absolute positioning altogether. Am I doing something wrong? Any help would be appreciated.

<html><head>
<style type=&quot;text/css&quot;>
img.1 {position:absolute; left:100px; top:100px}
img.2 {position:absolute; left:200px; top:100px}
img.3 {position:absolute; left:100px; top:200px}
img.4 {position:absolute; left:200px; top:200px}
</style>
<title>Absolute Positioning</title></head>
<body>
<img class=&quot;1&quot; src=&quot;1.png&quot; alt=&quot;Image 1&quot; />
<img class=&quot;2&quot; src=&quot;2.png&quot; alt=&quot;Image 2&quot; />
<img class=&quot;3&quot; src=&quot;3.png&quot; alt=&quot;Image 3&quot; />
<img class=&quot;4&quot; src=&quot;4.png&quot; alt=&quot;Image 4&quot; />
</body></html> Clive
 
Works ok for me:

Not sure if there is a Typo above but this code:

<img class=&quot;1&quot; src=&quot;1.png&quot; alt=&quot;Image 1&quot; />
<img class=&quot;2&quot; src=&quot;2.png&quot; alt=&quot;Image 2&quot; />
<img class=&quot;3&quot; src=&quot;3.png&quot; alt=&quot;Image 3&quot; />
<img class=&quot;4&quot; src=&quot;4.png&quot; alt=&quot;Image 4&quot; />

should be:

<img class=&quot;1&quot; src=&quot;1.png&quot; alt=&quot;Image 1&quot; >
<img class=&quot;2&quot; src=&quot;2.png&quot; alt=&quot;Image 2&quot; >
<img class=&quot;3&quot; src=&quot;3.png&quot; alt=&quot;Image 3&quot; >
<img class=&quot;4&quot; src=&quot;4.png&quot; alt=&quot;Image 4&quot; >

*without the slash(/) &quot;did you just say Minkey?, yes that's what I said.&quot;

MrGreed
 
MrGreed,

The / is actually the standard compliant way of writing single standing elements. for example <br /> which doesn't have any closeing tag now is to be used with a slash delimiting it. It speeds up processing time in large pages in the newer browsers.

Clive,

I do believe class names should start with any character in the alphabet accentuated or not and cannot start with a numerical value.

Valid class names :

one321
_qsdf
$$qsdf

Invalid class names :

12
321qsdf
1qs/**/df

I hope this helps.
Gary Haran
 
Hi,

Somewhere I read that some versions of NN and Opera don't allow underscores (H_K) in a classname.

So I should only use alphabetic characters if I where you?
There are enough combinations to find a unique classname.

Erik <-- My sport: Boomerang throwing !!
!! Many Happy Returns !! -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top