First Post: Questions from a Beginner

gman5672

New member
Jul 29, 2010
32
2
0
Hey, it's my first post here. As a peace offering for the shit (my questions) you're about to laugh/weep at, I come with gifts. This is what y'all like, right? If you don't, I suggest a good therapist.

/read the Rules of Engagement #11. Boobs go in StS only/

Now for the show.

I'm designing a webpage, and was wondering how to get the borders or banners down each side of the page so that the page is only a certain width, and the information is in the centre. I can get them so that they're a certain height, but I can't get them to just go all the way down the page. Yeah, that much of a beginner.

I was also wondering about shopping carts and order forms. The page will only sell a couple of products, the main one being a weekly newsletter. Are there any links on how to build an order form or shopping cart? I'd also like any information on mailing lists if possible.

I make myself out to be a n00b, but I can actually understand HTML and CSS pretty well. I just have trouble with the side border aspect of it. Although, I'm sure more problems will arise as I progess!

Any help would be much appreciated.
 
Last edited by a moderator:


Give me a link. I know learning this stuff is a biotch if you don't have anyone to give you any explanations
 
Here is a basic template to work with though.

Code:
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>Default XHTML</title>
  <link rel="stylesheet" type="text/css" href="style.css" />
</head>

<body>
<div id="container">
     
<h1>Title of the page</h1>

<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>


</div><!--end #container-->
</body>
</html>

then style.css

Code:
body{
    background:#eee;
    color:#1f1f1f;
    }

#container{
    margin: 0 auto;
    width:600px;
    border:5px solid #ccc;
    background:#fff;
    padding:10px;
    }

will give you a template like this:
GSpFL.png
 
If you dont understand the difference between centering a div and 'getting the borders down the side to reach the bottom' you gona be fucked when it comes to shopping carts.

I would suggest you look at a widely available CMS with many free templates, such as Wordpress, or pay someone to do it for you.

If you are skint and determined to learn yourself, i suggest you go over some basic html/css tutorials first, and abandon the notion you have a clue what your doing atm.

Net tuts site is pretty good, google it.
 
Thanks Garrett! That's it sorted.

If you dont understand the difference between centering a div and 'getting the borders down the side to reach the bottom' you gona be fucked when it comes to shopping carts.

I would suggest you look at a widely available CMS with many free templates, such as Wordpress, or pay someone to do it for you.

If you are skint and determined to learn yourself, i suggest you go over some basic html/css tutorials first, and abandon the notion you have a clue what your doing atm.

Net tuts site is pretty good, google it.

I know how to centre a div, I was just wondering about this. I worded it wrong, which may be where I confused you. As for having a clue about what I'm doing, I'll freely admit I know fucking jackshit compared to alot of guys here.

I'm not mainly doing this for the money currently. I'm doing it just to learn and get experience so I can hopefully earn off it in years to come. I recently quit a job in IB, money isn't a problem, and shouldn't be for a while yet.

And thanks for the links to the tutorial sites. I had a couple of them, but the others are also helpful.

After I made this thread I noticed the newbie section. My bad.