Jump to content


Need Help ASAP.


4 replies to this topic

#1 __PHANTOM__

    Young Padawan

  • Members
  • Pip
  • 2 posts

Posted 13 October 2007 - 08:25 AM

Alright you know how in tables you can easily have side bars then the content in the middle. Well I can't figure out in CSS how I can have the side images adjust when the middle content is filled. Like how would I make it so that when the content in the middle gets bigger or smaller to have the side backgrounds adjust to fit instead of standing there letting the content be bigger then the sides.

Example:

Like this,, with the side bars just like this

Posted Image

Not like this,,

Posted Image

#2 lysol

    Young Padawan

  • Members
  • Pip
  • 140 posts
  • Gender:Male
  • Location:Washington, DC

Posted 13 October 2007 - 09:08 AM

well, css has class labels per section...did you know that?

ie html:
<div id=csstest>
blah blah blah blah blah
</div>

ie css coding that is going to be used on your page
.csstest {
	 background: #000000
}

ect

can't really explain it, but im sure there are some tutorials here that can.

but you have to mess around with your borders coding when editing a certain part of the css tables..

correcty if im wrong...

Edited by Lopezt, 13 October 2007 - 09:09 AM.


#3 __PHANTOM__

    Young Padawan

  • Members
  • Pip
  • 2 posts

Posted 13 October 2007 - 10:11 AM

Lol im not a new person at css, I coded my whole layout in css so far, I just need to know how to get the sides to work correctly.

PS: My sidebars are images, Not borders.

Edited by __PHANTOM__, 13 October 2007 - 10:12 AM.


#4 Lastcrime

    Impatient Jedi that likes to eat cereal

  • Members
  • PipPipPip
  • 649 posts
  • Gender:Male
  • Location:Toronto, Ontario, Canada
  • Interests:Soccer, Snowboarding, Hockey, B-ball, Skateboarding, Computers!

Posted 13 October 2007 - 10:48 AM

lopezt you messed up your code, in the html you put an id
id=csstest
, but in css you made a class
.csstest
lol.

Edited by Lastcrime, 13 October 2007 - 10:49 AM.


#5 Ghost

    Honored P2L Member

  • P2L Staff
  • PipPipPip
  • 675 posts
  • Gender:Male
  • Location:Australia

Posted 14 October 2007 - 10:42 PM

It should be an onion skin if you're planning on using div's.

This article should help. ;)

They use it on an image, but it's exactly the same if you wanna use it for content :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users