Advanced Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignAdvanced Web Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 18th, 2007, 05:19 PM
CHornJr's Avatar
CHornJr CHornJr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: New York City
Posts: 236 CHornJr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 50 m 36 sec
Reputation Power: 7
Send a message via AIM to CHornJr Send a message via MSN to CHornJr Send a message via Yahoo to CHornJr
Question Layout questions with CSS

1. On my layout I have my navigation links on the left side (like most sites) and my content on the right. Now I would prefer not to use frames or the overflow:scroll command. However the content on some parts of the site will be longer then others and I would like the navigation bar to stretch as low as the content. So I will need a minimum height for the navigation bar to actually contain the links and a way for it to keep stretching below the last link for when the content goes longer then the navigation bar (which will be most of the time). I know I can do this if I used tables for layout, but I despise doing tables for layout, I prefer using CSS for my layouts. Can this be done with CSS and how?

2. I am going to be (planning on) using absolute positioning for the site. now I figure most of the audience will be using 1024x768, my res is 1280x1024 and from knowing my friends and some of the intended audience this will probably be the next common res. So what I want to do is have multiple style sheets for the different resolutions. However I do not know how to find out someones screen resolution. What options are there for finding out someones screen resolution?

just in-case it matters the site will be done in php4, so if there is a php way of finding out the resolution that is preferred, but any method is fine
__________________
CHornJr
"One day I'll know what I am doing"
My Blog
Suanhacky Lodge #49
Rebel Squadrons

Reply With Quote
  #2  
Old January 19th, 2007, 09:08 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
I'll have to do a little research to answer your first question; I totally understand what you're talking about, I just want to get my facts straight before I offer any suggestions.

As for the second question, I think you've hit the exact reason people generally *don't* use absolute positioning =) Is there a reason you want to use absolute? I would encourage a liquid layout, or something slightly dynamic. I cringe at the thought of maintaining two stylesheets.

It is possible to figure out a browser's resolution using Javascript, I'm sure there's a million examples on the net.
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter!
DevArticles Forum Moderator

"The net is a waste of time, and that's exactly what's right about it." -- William Gibson

Reply With Quote
  #3  
Old January 19th, 2007, 10:48 AM
CHornJr's Avatar
CHornJr CHornJr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: New York City
Posts: 236 CHornJr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 50 m 36 sec
Reputation Power: 7
Send a message via AIM to CHornJr Send a message via MSN to CHornJr Send a message via Yahoo to CHornJr
Quote:
Originally Posted by MadCowDzz
As for the second question, I think you've hit the exact reason people generally *don't* use absolute positioning =) Is there a reason you want to use absolute? I would encourage a liquid layout, or something slightly dynamic. I cringe at the thought of maintaining two stylesheets.

It is possible to figure out a browser's resolution using Javascript, I'm sure there's a million examples on the net.


I normally like absolute positioning because I like to control how the site looks, but I thought about it as I slept and I agree that maintaining multiple style sheets would be a pain in the butt. SO its something I will have to think about some more

Reply With Quote
  #4  
Old January 19th, 2007, 11:58 AM
ezenaide's Avatar
ezenaide ezenaide is offline
custom user
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: olinda - br
Posts: 77 ezenaide User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 12 h 44 m 50 sec
Reputation Power: 4
Send a message via MSN to ezenaide
for the first question, you mean something like this?

Reply With Quote
  #5  
Old January 19th, 2007, 12:22 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
It's always a big sacrifice for designers to submit to the thought of having their beautiful design viewed differently on a client's computer.

I think Jeffrey Veen says it best:
Quote:
All of these things are probably true of the work you do online:
  1. Your web site is a tiny piece of a much larger experience.
  2. Nobody sees your web site the way you expected. Few use your content the way you intended.
  3. Everything you create online is being ripped apart and recombined with other stuff by thousands of curious geeks. Or at least, should be.
  4. The easiest way to fail is by trying to control all this.

Reply With Quote
  #6  
Old January 19th, 2007, 03:34 PM
CHornJr's Avatar
CHornJr CHornJr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: New York City
Posts: 236 CHornJr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 50 m 36 sec
Reputation Power: 7
Send a message via AIM to CHornJr Send a message via MSN to CHornJr Send a message via Yahoo to CHornJr
Quote:
Originally Posted by ezenaide
for the first question, you mean something like this?


an example of what I want to do for question 1 can be found at www.ne2c.org look at the right side navigation bar. Notice where it ends. Then click on the officers page and look at the nav bar and scroll down. You'll see the navigation bar is longer then before. The person who did this site did it with a table layout. I want to do the same thing, but with a CSS layout.

Reply With Quote
  #7  
Old January 22nd, 2007, 01:19 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
Quote:
Originally Posted by CHornJr
an example of what I want to do for question 1 can be found at www.ne2c.org look at the right side navigation bar. Notice where it ends. Then click on the officers page and look at the nav bar and scroll down. You'll see the navigation bar is longer then before. The person who did this site did it with a table layout. I want to do the same thing, but with a CSS layout.


The right nav bar doesn't appear to be on the officers page.
Or are you referring to how the (left) grey bar goes all the way down the page?

Reply With Quote
  #8  
Old January 22nd, 2007, 01:32 PM
CHornJr's Avatar
CHornJr CHornJr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: New York City
Posts: 236 CHornJr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 50 m 36 sec
Reputation Power: 7
Send a message via AIM to CHornJr Send a message via MSN to CHornJr Send a message via Yahoo to CHornJr
Quote:
Originally Posted by MadCowDzz
The right nav bar doesn't appear to be on the officers page.
Or are you referring to how the (left) grey bar goes all the way down the page?


I meant left, sorry

Reply With Quote
  #9  
Old January 22nd, 2007, 01:40 PM
ezenaide's Avatar
ezenaide ezenaide is offline
custom user
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: olinda - br
Posts: 77 ezenaide User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 12 h 44 m 50 sec
Reputation Power: 4
Send a message via MSN to ezenaide
the link i've posted isn't the same idea you want - how the space below the menu goes with the content?
__________________
Eduardo Zenaide
.
tem a ver?

Reply With Quote
  #10  
Old January 22nd, 2007, 02:18 PM
CHornJr's Avatar
CHornJr CHornJr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: New York City
Posts: 236 CHornJr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 50 m 36 sec
Reputation Power: 7
Send a message via AIM to CHornJr Send a message via MSN to CHornJr Send a message via Yahoo to CHornJr
yeah, I want the space below the menu to go with the content

Reply With Quote
  #11  
Old January 29th, 2007, 11:08 AM
CHornJr's Avatar
CHornJr CHornJr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: New York City
Posts: 236 CHornJr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 50 m 36 sec
Reputation Power: 7
Send a message via AIM to CHornJr Send a message via MSN to CHornJr Send a message via Yahoo to CHornJr
just thought I would ask if there were any ideas to my problem yet

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignAdvanced Web Development > Layout questions with CSS


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



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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