PDA

View Full Version : Coding Expandables



Lee
26-03-2008, 02:37 PM
Hey,

I am trying to learn how to code expandables but when I draw a box, slice it then open the middle image, when I go to change the height to 1 px, It automaticly changes the width.. How do I change the heigh and keep the width as it is?

kk.
26-03-2008, 02:42 PM
unclick the 'link'. It constrains the dimensions

=Collecting=
26-03-2008, 02:42 PM
add width:100% i think

Bojangles
26-03-2008, 02:50 PM
Lmao, make sure you've left a gap for the middle so it's showing a border.
Then just do this.

#middle {
background-image: (url of the image);
width: (width of the middle image)
background-repeat: repeat-y;
}

That repeat will allow it to expand, don't add a height because the height is set in the image, only add a width so its inline with the top and bottom image.

Want to hide these adverts? Register an account for free!