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 November 17th, 2003, 02:10 AM
young majors's Avatar
young majors young majors is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Cali
Posts: 2 young majors User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
absolute css style re-size question

Ok. I've started learning CSS, such as it is-in Dreamweaver MX. I have gotten as far as working with the style sheets and usually tried embedding them inside existing tables on the html page. Most of the time I would set the positioning to relative so that it would sit inside a specific row or column. Only problem is I want to be able to add scroll bars to the style (perhaps to at one point cut and paste blog content) and it seems like the only way to achieve this is to make the style absolute and type in the numeric values for the respective position on the page. That solved the scroll bar issue but now the CSS tables are fixed on the page and will not re-size with the browser window like my old tables used to do! So I guess my question is can I have my scrollbars and tables too? And if not, can my CSS styles be set to behave like the tables do?

thanks in advance.

Reply With Quote
  #2  
Old November 17th, 2003, 04:57 PM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,541 kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 1 h 9 m
Reputation Power: 597
There are several issues here.

First, there is no particular need to use any but default static positioning in the problem you described.

Relative positioning means the position may be offset from its normal position in the flow. Its normal position is "saved" and not closed up.

Absolute positioning means that offsets are taken from the edges of the container. The natural position is not saved, and is closed.

Sizing need not be metric eg. 20px or 10 ems, etc. It may be a fraction of its container's size, 35%, for example.

Tables are deprecated as a layout method. Write structural HTML, and let CSS define how the structure is displayed.

Having said all that, here is an example of what you want. I have put the <div> in a cell, and it obeys the rules of <td>'s.

cheers,

gary

edit: damn typos!
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

Ask a better question, get a better answer.

Last edited by kk5st : November 17th, 2003 at 05:00 PM.

Reply With Quote
  #3  
Old November 17th, 2003, 07:45 PM
young majors's Avatar
young majors young majors is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Cali
Posts: 2 young majors User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks for that link, I'll try this with my code. If everything goes well I'll post the result and you can tell me how it looks. Peace.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > absolute css style re-size question


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 2 hosted by Hostway