The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Web Design
> CSS Help
|
CSS Positioning
Discuss CSS Positioning in the CSS Help forum on Dev Shed. CSS Positioning Cascading Style Sheets (CSS) forum discussing all levels of CSS, including CSS1, CSS2 and CSS Positioning. CSS provides a robust way of applying standardized design concepts to your web pages.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

September 12th, 2000, 04:00 PM
|
|
Junior Member
|
|
Join Date: Sep 2000
Posts: 7
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
I'm using CSS to display an area of text on a certain location on a page. My problem is what it looks like at different resolutions.
I used this code in the past for a webpage but it was aligned to the left. So I am just figuring now that because it was aligned to the left the position coordinates always remain the same.
But on the page I am working on now I have the content of the page centered. Now when I look at the page in 800x600 the CSS position coordinates have the text in once place and if I look at it in anything higher, its way off ( a bit to the left )
I believe I understand why its doing it but is there another way for me to accomplish what I'm trying to do with CSS?
I'm trying not to have to make the roll over part images of text but will if I cant find a solution to this problem.
Here's an example of the CSS line of code for one section of the rollover text:
(div ID="nav6" STYLE="left: 371; position: absolute; top: 277; visibility: hidden; width: 420; height: 125")
Thanks,
George
|

September 13th, 2000, 07:38 PM
|
|
Junior Member
|
|
Join Date: Sep 2000
Location: Los Angeles, CA, USA
Posts: 7
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
If I understand your problem correctly, when you browser is at the desired resolution everything is fine, butwhen it is at lowers resolution the layers move to the right and when it is at higher resolution the layers move to the left...
If that is what happens the only solution is to align your main content to the left... or maybe find a different approach to make rollovers... 
|

September 13th, 2000, 08:22 PM
|
|
Junior Member
|
|
Join Date: Sep 2000
Posts: 7
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Thanks, thats what I thought!
Any other solution to do text rollovers other than making it graphics?
|

September 22nd, 2000, 04:54 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
There is one more way, since your layer moves on resize, i suppose you positioned it "position: absolute" that way the pos is always calculated from the upper left corner of the browser.
If you place the layer (in the code) below for instance an image, and use "position: relative" the layer placement will be in relation to that image. Works with text, table cells and more as a reference point.
It's not as flexible as absolute position, and it reserves space on the page even when invisible, but sometimes it's worth a try.
G'luck URL Dan
|

October 11th, 2000, 07:19 AM
|
|
Junior Member
|
|
Join Date: Oct 2000
Posts: 10
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
As far as I know, the only way to make text rollovers (not graphics) is to rewrite the layer content on rollover. It means that you need a first layer with your text, and a second transparent layer over it (used as sensitive zone).
|

December 19th, 2000, 04:28 PM
|
|
Junior Member
|
|
Join Date: Dec 2000
Location: Mountain View, CA, USA
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by Zebulon:
As far as I know, the only way to make text rollovers (not graphics) is to rewrite the layer content on rollover. It means that you need a first layer with your text, and a second transparent layer over it (used as sensitive zone).[/quote]
I have a similar problem. How can I make these layers display with respect to a table cell? I need to replace the content of this cell with new text when the user rolls over another section of the page. Can this be done without layers? Thanks for any tips or links.
------------------
Chris Eisbach
Usability Degign Engineer
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|