HighDots Forums  

Re: Okay...CSS Assistance, please!!

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Re: Okay...CSS Assistance, please!! in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Osgood
 
Posts: n/a

Default Re: Okay...CSS Assistance, please!! - 11-10-2004 , 01:20 PM






David wrote:

Here's my problem. I need to
Quote:
prevent the <li>'s from wrapping if the viewport is sized smaller than their
combined width.
Set min-width on the #Site-Wrapper <div>. That will take care of all
browsers apart from IE which can be catered for by the min-width
extention availbale to download from projectseven.


In addition, I need this nav to force the wrapper div open,
Quote:
so that my floated "comments" div will remain right-aligned in the header
browser.
I dont follow this. The wrapper <div> is 100% so it doesnt need forcing
open?



Reply With Quote
  #2  
Old   
David
 
Posts: n/a

Default Re: Okay...CSS Assistance, please!! - 11-10-2004 , 01:56 PM






Quote:
I dont follow this. The wrapper <div> is 100% so it doesnt need forcing
open?
I figured that might be hard to follow

The wrapper is set to 100%, and the body min-width is set to 760px..so
ideally, the body should not collapse to anything smaller than 760px.
Obviously this doesn't work in IE since it doesn't interpret the min-width
property correctly (if at all).

My problem was that using the <li>'s allowed the the nav buttons to wrap to
a new line.
http://www.visiworks.com/cfweb/screenshot0.jpg

So I figured, fine, I'll try using a table, even though I was shooting for
an entirely CSS layout. So, I put the table in the Site_Navigation <div>.
So, now, my images wouldn't wrap...but the table would break out of it's
container div (Site_Navigation) even when setting it's position to relative
and display to inline.

When it broke out of it's container div, it also broke out of the wrapper
div, which allowed all the fluid elements to continue collapsing, while
generating the horizontal scrollbar at the bottom. This would leave the
body's background-image showing to the right of the comments <div> because
the wrapper was not being "held open" by the table.
http://www.visiworks.com/cfweb/screenshot1.jpg

So bascially, no matter what happens, I need for the wrapper to always be
either 100% or the width of it's longest non-wrapping child, so that when
the horizontal scrollbar is generated, scrolling right will present the same
look at 800x600 as it does at 1024x768, etc.
http://www.visiworks.com/cfweb/screenshot2.jpg

And, right about now I'm wishing he (my boss) would take the 2 damn minutes
it takes to go ahead and set the development site up on the server. !!

--
David Young
Senior Web Designer
CFWebmasters.com
david (AT) cfwebmasters (DOT) com
ICQ# 1974322
"Osgood" <notavailable (AT) atthisaddress (DOT) com> wrote

Quote:
Osgood wrote:

In addition, I need this nav to force the wrapper div open,

so that my floated "comments" div will remain right-aligned in the
header
browser.


I dont follow this. The wrapper <div> is 100% so it doesnt need forcing
open?


The comment <div> looks to me as though it is right aligned already?





Reply With Quote
  #3  
Old   
Osgood
 
Posts: n/a

Default Re: Okay...CSS Assistance, please!! - 11-10-2004 , 02:04 PM



David wrote:

Quote:
The wrapper is set to 100%, and the body min-width is set to 760px..so
ideally, the body should not collapse to anything smaller than 760px.
Obviously this doesn't work in IE since it doesn't interpret the min-width
property correctly (if at all).
Dont set the minimum-width on the body set it on the wrapper <div>.

Min-width on a wrapper <div> will work in IE if you use PVii's extention.

That will stop the <li> from wrapping to the next line and you wont have
to worry about keeping the wrapper open.

Of course you'll get a scroll bar should a user narrow the browser
viewport to below the set min-width but that unavoidable.



Reply With Quote
  #4  
Old   
Osgood
 
Posts: n/a

Default Re: Okay...CSS Assistance, please!! - 11-10-2004 , 02:13 PM



David wrote:

Is the PVii extension free?

Yup, its free.

Quote:
On another note, did you see any issues with the CSS I posted? Is there a
more efficient way or perhaps a "better practices" way of doing this?
To be honest I didnt really look at it that closely. It worked ok in the
browsers that I tested so efficient or not the main thing is it worked.



Reply With Quote
  #5  
Old   
David
 
Posts: n/a

Default Re: Okay...CSS Assistance, please!! - 11-10-2004 , 02:13 PM



Quote:
Of course you'll get a scroll bar should a user narrow the browser
viewport to below the set min-width but that unavoidable.
Oh, I know...and that's what the boss wants. I just didn't want the top of
the site looking like it does in that second example link:
http://www.visiworks.com/cfweb/screenshot1.jpg


Quote:
Min-width on a wrapper <div> will work in IE if you use PVii's extention.
Okay...I'll be sure to change that. Is the PVii extension free?

On another note, did you see any issues with the CSS I posted? Is there a
more efficient way or perhaps a "better practices" way of doing this?

Thanks,

--
David Young
Senior Web Designer
CFWebmasters.com
david (AT) cfwebmasters (DOT) com
ICQ# 1974322
"Osgood" <notavailable (AT) atthisaddress (DOT) com> wrote

Quote:
David wrote:

The wrapper is set to 100%, and the body min-width is set to 760px..so
ideally, the body should not collapse to anything smaller than 760px.
Obviously this doesn't work in IE since it doesn't interpret the
min-width
property correctly (if at all).

Dont set the minimum-width on the body set it on the wrapper <div>.

Min-width on a wrapper <div> will work in IE if you use PVii's extention.

That will stop the <li> from wrapping to the next line and you wont have
to worry about keeping the wrapper open.

Of course you'll get a scroll bar should a user narrow the browser
viewport to below the set min-width but that unavoidable.




Reply With Quote
  #6  
Old   
David
 
Posts: n/a

Default Re: Okay...CSS Assistance, please!! - 11-10-2004 , 02:24 PM



You didn't happen to look at it in Safari or Mac IE did you?

--
David Young
Senior Web Designer
CFWebmasters.com
david (AT) cfwebmasters (DOT) com
ICQ# 1974322
"Osgood" <notavailable (AT) atthisaddress (DOT) com> wrote

Quote:
David wrote:

Is the PVii extension free?

Yup, its free.

On another note, did you see any issues with the CSS I posted? Is there
a
more efficient way or perhaps a "better practices" way of doing this?

To be honest I didnt really look at it that closely. It worked ok in the
browsers that I tested so efficient or not the main thing is it worked.




Reply With Quote
  #7  
Old   
Osgood
 
Posts: n/a

Default Re: Okay...CSS Assistance, please!! - 11-11-2004 , 01:21 PM



David wrote:

Quote:
You didn't happen to look at it in Safari or Mac IE did you?


Yes. It worked ok in both once I had applied the min-width.



Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.