1 reply [Last post]
rudy10
Offline
newbie
Last seen: 8 years 43 weeks ago
Timezone: GMT+2
Joined: 2012-06-17
Posts: 1
Points: 2

Hi, I make a layout with css creator, with 3 columns e without header and footer.

I read the page http://csscreator.com/node/20471..

Now my problem is that i put i background image in the 3 columns but i see only a litte part of the image.

This i the part of css for the left column.

#left {
  float: left;
  display: inline;
  width: 200px; /*** Left Column Width ***/
  margin-left: -200px; /*** NEGATIVE Left Column Width ***/
  position: relative;
  /* my */
  background-image: url(./images/Menu_SX.jpg); 
  display: block;
}

where I wrong?

tnk

Rudy

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 4 days 8 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Hi Rudy, Since #left has no

Hi Rudy,
Since #left has no height, then the background will only show a far as the content goes.
You can either specify a height, or min-height. Or you can put the background on an element that contains it that has more height.