CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 12th, 2000, 04:00 PM
gplemos gplemos is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Posts: 7 gplemos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #2  
Old September 13th, 2000, 07:38 PM
Pesho Pesho is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Los Angeles, CA, USA
Posts: 7 Pesho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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...

Reply With Quote
  #3  
Old September 13th, 2000, 08:22 PM
gplemos gplemos is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Posts: 7 gplemos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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?

Reply With Quote
  #4  
Old September 22nd, 2000, 04:54 PM
Dan
Guest
Dev Shed Newbie (0 - 499 posts)
 
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

Reply With Quote
  #5  
Old October 11th, 2000, 07:19 AM
Zebulon Zebulon is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 10 Zebulon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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).

Reply With Quote
  #6  
Old December 19th, 2000, 04:28 PM
chrisbac chrisbac is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: Mountain View, CA, USA
Posts: 1 chrisbac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS Positioning

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap