Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Maximal width for Luna

Quote Reply
Maximal width for Luna
Hi,
I have set my document width in the luna template to 98%

Code:
/* Change width of document */
#wrapper {
width: 98%;
}

So how can I set it to 98% width AND at the same time set a max width to let me say 1024px

Something like
Code:

/* Change width of document */
#wrapper {
width: 98%; max: 1024px
}

Thanks
Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Maximal width for Luna In reply to
Setting maximum width isn't a pretty thing to do, since browser support for the max-width property isn't widely supported (namely it isn't supported by IE). There are some ugly hacks for this available if you search for 'max-width' using your favourite search engine.

Adrian
Quote Reply
Re: [brewt] Maximal width for Luna In reply to
Oh, another thing you can do is set the maximum width using javascript. To be complete, you probably should also have a onresize handler to remove the width when the window was resized to be smaller than the max.

Adrian
Quote Reply
Re: [brewt] Maximal width for Luna In reply to
Thanks for your reply
Matthias

Matthias
gpaed.de