HighDots Forums  

Make the CSS Right property work with absolute elements in IE

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Make the CSS Right property work with absolute elements in IE in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jonjon
 
Posts: n/a

Default Make the CSS Right property work with absolute elements in IE - 04-05-2004 , 08:05 AM






Hi,
I want to be able to define the right property of my absolute positionned
elements... for example if a button is 50px left and 150px right, it will
resize when the page is resized.
This is working fine in Mozilla but it isn't working in Internet Explorer
Is this a known bug ? do you have any suggestion without using tables or
OnResize event ?

Best regards,

John.



Reply With Quote
  #2  
Old   
Els
 
Posts: n/a

Default Re: Make the CSS Right property work with absolute elements in IE - 04-05-2004 , 08:20 AM






jonjon wrote:
Quote:
Hi,
I want to be able to define the right property of my absolute positionned
elements... for example if a button is 50px left and 150px right, it will
resize when the page is resized.
This is working fine in Mozilla but it isn't working in Internet Explorer
Is this a known bug ? do you have any suggestion without using tables or
OnResize event ?
Maybe without absolute positioning (with a url it would be
easier to guess what might work):

margin-left:50px;
margin-right:150px;
width:auto;

--
Els

Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -



Reply With Quote
  #3  
Old   
jonjon
 
Posts: n/a

Default Re: Make the CSS Right property work with absolute elements in IE - 04-05-2004 , 08:36 AM



Quote:
Maybe without absolute positioning (with a url it would be
easier to guess what might work):

margin-left:50px;
margin-right:150px;
width:auto;
Thank you for your fast answer, unfortunatly I really need absolute
positionning.
Here is a link to test the behavior in Internet Explorer and Mozilla... the
red DIV should resize with the page:
http://modularity.free.fr/test/testright.htm
Thank you,

John.




Reply With Quote
  #4  
Old   
Alan J. Flavell
 
Posts: n/a

Default Re: Make the CSS Right property work with absolute elements in IE - 04-05-2004 , 09:21 AM



On Mon, 5 Apr 2004, jonjon wrote:

Quote:
unfortunatly I really need absolute positionning.
^^^^^^^^^^^

Then, as a WWW page, your design is doomed.

Hint: the presentation, no matter how desirable, is optional: that
comes with the territory.


Reply With Quote
  #5  
Old   
jonjon
 
Posts: n/a

Default Re: Make the CSS Right property work with absolute elements in IE - 04-05-2004 , 10:17 AM



Quote:
unfortunatly I really need absolute positionning.
^^^^^^^^^^^

Then, as a WWW page, your design is doomed.

Hint: the presentation, no matter how desirable, is optional: that
comes with the territory.
Well I can understand your point of view, however I'm developping a software
to ease the process of creating web pages (
http://www.dynamicarchitect.com ) and the whole concept is about absolute
positionning. That's why I'd be glad if somebody had a solution of a good
alternative to the right property for Internet Explorer.
Thank you for your help.

Best regards,

John.




Reply With Quote
  #6  
Old   
Spartanicus
 
Posts: n/a

Default Re: Make the CSS Right property work with absolute elements in IE - 04-05-2004 , 11:04 AM



"jonjon" <none (AT) for (DOT) now> wrote:

Quote:
Well I can understand your point of view, however I'm developping a software
to ease the process of creating web pages (
http://www.dynamicarchitect.com ) and the whole concept is about absolute
positionning.
The clueless teaching the even more clueless, sheesh.

--
Spartanicus


Reply With Quote
  #7  
Old   
Els
 
Posts: n/a

Default Re: Make the CSS Right property work with absolute elements in IE - 04-05-2004 , 11:14 AM



jonjon wrote:
Quote:
Maybe without absolute positioning (with a url it would be
easier to guess what might work):

margin-left:50px;
margin-right:150px;
width:auto;

Thank you for your fast answer, unfortunatly I really need absolute
positionning.
Unfortunately indeed. :-)

Quote:
Here is a link to test the behavior in Internet Explorer and Mozilla... the
red DIV should resize with the page:
http://modularity.free.fr/test/testright.htm
It does in NS7.1.
Doesn't show in IE, cause you didn't set a specific height
on the div and the body.
But I changed some things, and it almost looks like your
example, but without absolute positioning.
http://locusmeus.com/test/testright.html
The left and right side aren't a problem, the bottom is.
The div needs a height, and the vertical margins seem to be
added to that height.
Different approach, same problem with total height of page:
http://locusmeus.com/test/testrightdifferent.html

Could you explain why it has to absolute positioned?
(not that it helps, I'm just curious)


--
Els

Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -



Reply With Quote
  #8  
Old   
Alan J. Flavell
 
Posts: n/a

Default Re: Make the CSS Right property work with absolute elements in IE - 04-05-2004 , 11:30 AM



On Mon, 5 Apr 2004, jonjon wrote:

I'm sure it's very pretty when the presentation situation meets your
expectations, but here's an extract which indicates what the WAI gets
to hear (or an indexing robot gets to index, for that matter):

Products | Software | Developer Section

[separ8x8.gif]

[datitle-green.gif] [separ8x8.gif]

[da-pres5.gif]

[separ8x8.gif]

[dashot1-small.gif]
Click to enlarge

Key features...
[puce1.gif] Generate Dynamic HTML
[puce1.gif] Cross Browser compatible
[puce1.gif] WYSIWYG Editor
[puce1.gif] Pixel perfect web pages


A comment on those "key features":

WWW pages don't really work like that, no matter how hard you might
wish it. "What you see" is not what others get (it's just one
possible rendering), and IBM HPR, or JAWS, to take just two examples,
will make a nonsense of your "pixel perfection". Your concept of
"Cross Browser compatible" is somewhat limited - I'm not even sure
that the proffered page (which in fact seems to be
http://www.ibe-software.com/products...amicarchitect/ ) is
even cross compatible with -one- browser, across the browser's full
range of likely user preference settings.

Since this is the stylesheets group, I would have to recommend, as a
first priority, that you cut right back on embedding images of text,
and use a stylesheet instead. Or if you're -so- determined to get DTP
instead of a WWW page, then use PDF format instead of mis-applying WWW
techniques. At least if you do PDF properly, then text can be
extracted from it.

good luck.


Reply With Quote
  #9  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: Make the CSS Right property work with absolute elements in IE - 04-05-2004 , 12:33 PM



Quoth the raven named jonjon:

Quote:
Well I can understand your point of view, however I'm developping a
software to ease the process of creating web pages (
http://www.dynamicarchitect.com ) ...
That page (and in fact the whole site) is really cute with the nice
hot pink background!

(Oh wait, pink is /my/ default background color. You haven't specified
any. Hint: wherever you specify a color, you include a background color.)

It redirects to:
http://www.ibe-software.com/products...amicarchitect/

--
-bts
-This space intentionally left blank.


Reply With Quote
  #10  
Old   
jonjon
 
Posts: n/a

Default Re: Make the CSS Right property work with absolute elements in IE - 04-05-2004 , 12:59 PM



Quote:
The clueless teaching the even more clueless, sheesh.
First our goal is not to "teach" as you say, then where is the hint for the
problem I first exposed from the knowloadgeable person you seem to be ?




Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.