...

View Full Version : wraps/containers?



plattenumdesign
02-19-2009, 12:49 AM
might sound dumb but how do i make a container in css?

i have been givin a code containing a wrapper/container on this forum but i am wanting to know how to code them myself. anyone have a tutorial or link to how to learn it?

oesxyl
02-19-2009, 01:03 AM
might sound dumb but how do i make a container in css?

i have been givin a code containing a wrapper/container on this forum but i am wanting to know how to code them myself. anyone have a tutorial or link to how to learn it?
with css you only modify a wrapper/container build using html. For example you can build a container using div and add a class or a id attribute and then use class or id to style it how you want.

html:


<div id="wrp">
...your content here
</div>


css:


#wrp {
position: relative;
margin: auto;
}


the code depend of what you want to do, there is no special recipe.

best regards

cincinnatiboy4867
02-19-2009, 02:40 AM
You can also add stuff to the CSS like a border:


#wrp {
position: relative;
margin: auto;
border: 3px solid #808080;
padding: 4px;
}
...to give it that "container" look :)

plattenumdesign
02-19-2009, 04:10 AM
ok what about changing the width of the container and adding another container on each side?

Excavator
02-19-2009, 04:39 AM
ok what about changing the width of the container and adding another container on each side?

Maybe you should check out some of the free layouts that are available all over the internet. Have a look at some of these

http://www.cssplay.co.uk/layouts/
http://www.positioniseverything.net/
http://bonrouge.com/br.php?page=home

effpeetee
02-19-2009, 11:22 AM
Lots of help here. (http://exitfegs.co.uk/Sources.html)

and also here. (http://www.w3schools.com/) W3 Schools.

Frank



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum