Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 04:20 PM
Colin Walls
Guest
 
Posts: n/a
Default Min-height

I want to put a reasonable size graphic as a background on set of
webpages. Some of them are quite short, so I put a min-height on the body
tag.

Of course I should have checked the CSS compatiblity guide first,
although it is valid CSS (1 and 2) it doesn't work on IE. Can anyone
suggest a work-around, preferably one that doesn't involve tables.

--
Colin Walls
Email: Colin.Walls@murorum.demon.co.uk
Web: http://www.murorum.demon.co.uk
Phone: 01625 535123
Mobile: 07765 175829

  #2  
Old July 20th, 2005, 04:21 PM
Jacqui or (maybe) Pete
Guest
 
Posts: n/a
Default Re: Min-height

In article <pan.2003.07.28.17.29.09.902679@murorum.demon.co.u k>,
colin@murorum.demon.co.uk says...[color=blue]
> I want to put a reasonable size graphic as a background on set of
> webpages. Some of them are quite short, so I put a min-height on the body
> tag.
>[/color]
Not sure what the problem is - I take it you're trying to do something
more complex than this:

http://porjes.haxorz.org/one.html
  #3  
Old July 20th, 2005, 04:21 PM
Colin Walls
Guest
 
Posts: n/a
Default Re: Min-height

On Tue, 29 Jul 2003 14:29:09 +0100, Jacqui or Pete wrote:
[color=blue]
> In article <pan.2003.07.28.17.29.09.902679@murorum.demon.co.u k>,
> colin@murorum.demon.co.uk says...[color=green]
>> I want to put a reasonable size graphic as a background on set of
>> webpages. Some of them are quite short, so I put a min-height on the body
>> tag.
>>[/color]
> Not sure what the problem is - I take it you're trying to do something
> more complex than this:
>
> http://porjes.haxorz.org/one.html[/color]

Only slightly. I want an image on the bottom right, which I set with on
the body as you do. However, I also want one on the top left. I put this
one on to the <div> that I use for my left hand column. If the content of
the left hand column is short, then the image is truncated. It doesn't
matter whether or not I set a min-height on the column. CSS is:

body {
font-family: arial, helvetica, sans-serif;
font-size: x-small;
color: #000;
background: #fff url(images/bottomRight.jpg) no-repeat bottom right;
margin: 0px;
}

/*
* The main containter for the content
*/

#container {
background: url(images/topLeft.jpg) no-repeat top left;
padding: 0px 16em 0px 110px;
margin: 0px;
min-height: 700px;
}

--
Colin Walls
Email: Colin.Walls@murorum.demon.co.uk
Web: http://www.murorum.demon.co.uk
Phone: 01625 535123
Mobile: 07765 175829

  #4  
Old July 20th, 2005, 04:21 PM
Jacqui or (maybe) Pete
Guest
 
Posts: n/a
Default Re: Min-height

In article <pan.2003.07.29.17.21.03.132847@murorum.demon.co.u k>,
colin@murorum.demon.co.uk says...[color=blue]
> On Tue, 29 Jul 2003 14:29:09 +0100, Jacqui or Pete wrote:
>[color=green]
> > In article <pan.2003.07.28.17.29.09.902679@murorum.demon.co.u k>,
> > colin@murorum.demon.co.uk says...[color=darkred]
> >> I want to put a reasonable size graphic as a background on set of
> >> webpages. Some of them are quite short, so I put a min-height on the body
> >> tag.[/color][/color][/color]
....[color=blue][color=green]
> > http://porjes.haxorz.org/one.html[/color]
>
> Only slightly. I want an image on the bottom right, which I set with on
> the body as you do. However, I also want one on the top left. I put this
> one on to the <div> that I use for my left hand column. If the content of
> the left hand column is short, then the image is truncated. It doesn't
> matter whether or not I set a min-height on the column. CSS is:
>[/color]
....
Internet explorer doesn't implement min-height (it's only been in the
standard for half a decade or so). Just set the height to 700px - if
the content is longer than that then it will overflow [1]. The overflow
happens in the vertical direction so that's probably OK for you?

If that's not enough then you'll have to do something nasty - post back
& ask.

[1] Browsers that don't follow standards (ie IE) will actually expand
the div, but that's probably OK for you too.
  #5  
Old July 20th, 2005, 04:21 PM
Jacqui or (maybe) Pete
Guest
 
Posts: n/a
Default Re: Min-height

In article <pan.2003.07.29.17.21.03.132847@murorum.demon.co.u k>,
colin@murorum.demon.co.uk says...[color=blue]
> On Tue, 29 Jul 2003 14:29:09 +0100, Jacqui or Pete wrote:
>[color=green]
> > In article <pan.2003.07.28.17.29.09.902679@murorum.demon.co.u k>,
> > colin@murorum.demon.co.uk says...[color=darkred]
> >> I want to put a reasonable size graphic as a background on set of
> >> webpages. Some of them are quite short, so I put a min-height on the body
> >> tag.[/color][/color][/color]
....[color=blue][color=green]
> > http://porjes.haxorz.org/one.html[/color]
>
> Only slightly. I want an image on the bottom right, which I set with on
> the body as you do. However, I also want one on the top left. I put this
> one on to the <div> that I use for my left hand column. If the content of
> the left hand column is short, then the image is truncated. It doesn't
> matter whether or not I set a min-height on the column. CSS is:
>[/color]
....
Internet explorer doesn't implement min-height (it's only been in the
standard for half a decade or so). Just set the height to 700px - if
the content is longer than that then it will overflow [1]. The overflow
happens in the vertical direction so that's probably OK for you?

If that's not enough then you'll have to do something nasty - post back
& ask.

[1] Browsers that don't follow standards (ie IE) will actually expand
the div, but that's probably OK for you too.
 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles