SunQuest
           CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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 July 28th, 2003, 06:46 PM
mytwocents mytwocents is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 222 mytwocents User rank is Private First Class (20 - 50 Reputation Level)mytwocents User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 2 h 26 m 14 sec
Reputation Power: 6
CSS & layer positioning

I'm using layers but finding that I'm having to make seperate pages for different screen resolutions....I tried using percentages instead of pixels but it doesn't work! I've pasted a sample from my page for a layer (About)......any suggestions? I'm stuck!





Example:

#About { left: 315px; position: absolute; top: 50px; visibility: hidden; z-index: 1 }




<div id="About">
<table bgcolor="black" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>
<table bgcolor="#FFD784" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td><a class="menus" href="/history.cfm" onmouseout="menuOut('rollimg0')" onmouseover="menuOver('rollimg0')" target="_top"><b>History</b></a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>

Reply With Quote
  #2  
Old July 28th, 2003, 07:54 PM
meddle's Avatar
meddle meddle is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Location: Barcelona
Posts: 133 meddle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
#About { position: absolute; top: 50px; left: 315px; z-index: 1 }

visibility: hidden; will simply hide the layer.

Reply With Quote
  #3  
Old July 28th, 2003, 09:41 PM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,295 jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 2 Days 1 h 36 m 24 sec
Reputation Power: 760
Quote:
I tried using percentages instead of pixels but it doesn't work!
Show us an example of something you tried that "doesn't work". Tell us what you expect it to do or look like, and what it actually does or looks like.

Reply With Quote
  #4  
Old July 29th, 2003, 12:36 PM
mytwocents mytwocents is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 222 mytwocents User rank is Private First Class (20 - 50 Reputation Level)mytwocents User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 2 h 26 m 14 sec
Reputation Power: 6
OK, I hope this makes sense..... I have a dummy version (of sorts) that I've made as I would have to make it if by using my current coding, I wanted it to display correctly depending on screen size.... I've done examples of both in % and pixels. Ideally I would like to not have to make different pages for every screen size but rather one that formats accordingly. Depending on your screen size, if you have a 1024x768 then look at it normal and then resize your window to see how it doesn't reformat. I hope this seriously makes sense cause now I'm even confused at what I posted... Any help greatly appreciated!

The colors are wrong or not the same, but I don't care about that currently, I just want to get the coding right!


1024x768 - %
1024x768 - px


800x600 - %
800x600 - px

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS & layer positioning


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway