html - How do I put my content in a box? -


i'm new html , css, have managed create basic website, have small menu on top consists of links directing different pages such "home", "about" , "contact". site gonna consist of information , pictures it's enough.

anyway, feel site better if put content in box , have background on sides because text doesn't show when putting black outlines on letters. i'd put menu, logo , text inside box site: http://www.kakservice.se/?gclid=cj0keqiazai0brcs2yydo8yptuibeiqan3_lfqano2scd5hqcdw0jbwniaoayprzrg20x2a1lsbtircaako68p8haq (couldn't remember site in english design, suppose it's unimportant.) , preferably adding shadow @ border.

so how go this? have searched online, don't know search for.

thanks in advance.

what need is, wrap contents of <body> tag inside wrapper like:

<div id="wrap">   <!-- inside body. --> </div> 

and add following css:

body {background: url("bg.jpg") center center repeat;} #wrap {width: 80%; margin: auto;} 

you can replace bg.jpg background of choice.

an example of what's before is:

body {    background: url("http://thumbs.dreamstime.com/x/grunge-tiled-background-6169673.jpg") center center repeat;    margin: 0;    padding: 0;  }  #wrap {    width: 80%;    margin: auto;    background: #fff;    overflow: hidden;    padding: 15px;      }
<div id="wrap">    <h1>welcome site</h1>    <p>lorem ipsum dummy text of printing , typesetting industry. lorem ipsum has been industry's standard dummy text ever since 1500s, when unknown printer took galley of type , scrambled make type specimen book. has survived not 5 centuries, leap electronic typesetting, remaining unchanged. popularised in 1960s release of letraset sheets containing lorem ipsum passages, , more desktop publishing software aldus pagemaker including versions of lorem ipsum.</p>  </div>


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -