Current location: Hot Scripts Forums » General Web Coding » CSS » Height Issue


Height Issue

Reply
  #21 (permalink)  
Old 01-29-08, 02:21 PM
darren132 darren132 is offline
Newbie Coder
 
Join Date: Oct 2007
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Vicious View Post
I don't know if you have tried it, but here in FF and IE7, it expands always from the bottom of the header to the top of the footer. Haven't checked in IE6 though.

I don't understand what you mean with "red & blue bar are collapsable".

Anyway, I'd prefer adjusting my layout so that it works with CSS only, rather than relying on javascript to fix the layout. Perhaps it sounds strange to you, but there are always people who don't have JS enabled, so how does your page look like to them?
Basically the red and blue bar don't always show up as they're not suppose to all the time only when they're needed. I see you don't have a fixed footer in place that remains at the bottom of the screen at all times, as that's one of the hardest parts. If I could use just CSS, then I would, but so far I haven't had any luck with the kind of layout that I want, which is why I've had to resort to javascript. For people without javascript, I'll just detect if they have javascript and if not, I'll then enable the main scrollbars for them so that they can scroll down the page.
Reply With Quote
  #22 (permalink)  
Old 01-29-08, 03:03 PM
Walkere Walkere is offline
Newbie Coder
 
Join Date: Jan 2008
Location: New Jersey
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Vicious View Post
I don't understand what you mean with "red & blue bar are collapsable".
If I understand correctly, he means you can toggle them on and off.

So, for example, you can hit a "minimize" button that makes the red and/or blue bar disappear until you click a button to make them re-appear.

I agree with you about using css whenever possible, and your solution looks to be a perfect implementation of a static version of this page. The problem is that making part of the page dynamically appear/re-appear is going to take some kind of javascript...

You could use a combination of the two, though. For example, you use this stylesheet as the basic method. Then, use javascript to edit the positioning attributes when you want a piece to "hide."

That allows the site to work perfectly when there's no javasript enabled - it just prevents you from hiding the red and blue bars.

- Walkere
Reply With Quote
  #23 (permalink)  
Old 01-29-08, 03:10 PM
Vicious's Avatar
Vicious Vicious is offline
Community VIP
 
Join Date: Jan 2007
Location: Belgium
Posts: 584
Thanks: 0
Thanked 0 Times in 0 Posts
That indeed would be my preferred solution too Walkere. That would be a good use of Javascript. Using it to detect if the browser window is resized however, I don't like. Maybe for an intranet, where everyone is using the same browser... but not for the Internet
__________________
Jack Bauer makes Chuck Norris cry
Reply With Quote
  #24 (permalink)  
Old 01-29-08, 04:49 PM
darren132 darren132 is offline
Newbie Coder
 
Join Date: Oct 2007
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Walkere View Post
If I understand correctly, he means you can toggle them on and off.

So, for example, you can hit a "minimize" button that makes the red and/or blue bar disappear until you click a button to make them re-appear.

I agree with you about using css whenever possible, and your solution looks to be a perfect implementation of a static version of this page. The problem is that making part of the page dynamically appear/re-appear is going to take some kind of javascript...

You could use a combination of the two, though. For example, you use this stylesheet as the basic method. Then, use javascript to edit the positioning attributes when you want a piece to "hide."

That allows the site to work perfectly when there's no javasript enabled - it just prevents you from hiding the red and blue bars.

- Walkere
Ya, that's exactly what I mean. I've been trying to work out a reasonable layout that doesn't require so much javascript.


Quote:
Originally Posted by Vicious View Post
That indeed would be my preferred solution too Walkere. That would be a good use of Javascript. Using it to detect if the browser window is resized however, I don't like. Maybe for an intranet, where everyone is using the same browser... but not for the Internet
If I have to use javascript for the collapsable bars, then I might as well use javascript for the page to resize to the browsers size as I will be using javascript anyways. If the user doesn't have javascript enabled, I can just work around that by providing a different layout. If I can do most of it in CSS though, then that's what I'm looking for. I only want to resort to javascript if I really need to as I don't really care for javascript to begin with.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting to ems spyke01 CSS 0 11-09-07 02:48 PM
Print CSS Webpage in IE6 TheScreenSaver24 HTML/XHTML/XML 1 07-06-07 11:24 AM
CSS float and absolute height gigafare CSS 10 06-22-07 11:27 PM
Scrollbar!!!!!! LiLSweetie HTML/XHTML/XML 8 07-22-04 05:01 PM
getting the actual widht and height of a span davidklonski JavaScript 0 06-29-04 11:47 AM


All times are GMT -5. The time now is 02:05 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.