i cant figure out how to set two borders next to each other.
Code CSS:#border border:1px solid #c9c9c9; width:200px; height:300px; margin:5px; }
It works good up and down but i cant get it to work the other way around.
any ideas?
| SitePoint Sponsor |
i cant figure out how to set two borders next to each other.
Code CSS:#border border:1px solid #c9c9c9; width:200px; height:300px; margin:5px; }
It works good up and down but i cant get it to work the other way around.
any ideas?
Last edited by ScallioXTX; May 9, 2011 at 14:16. Reason: wrapped code in [hightlight="css"]...[/highlight]


Hi thaman941. Welcome to SitePoint.
It's not really clear what you are asking here. Could you be more specific. The code you posted should put a border all the way around the element that has an ID of #border. Where do you actually want the borders, and what kind of element are you styling?


If perhaps you want two elements side by side then you'll need to float the first one or float both.
e.g.
However as Ralph said it's not really clear what you are afterCode:#border border:1px solid #c9c9c9; width:200px; height:300px; margin:5px; float:left; }![]()
www.pmob.co.uk CSS FAQ 3 col demo Read My CSS Articles
Ultimate CSS Reference
Check out SitePoint's latest JavaScript challenge
Thanks its working now!
Bookmarks