View Single Post
  #3  
Old 02-06-2013, 10:46 AM
EchoedTruth EchoedTruth is offline
Sarnak

EchoedTruth's Avatar

Join Date: Oct 2012
Posts: 322
Default

Quote:
Originally Posted by Nuncio [You must be logged in to view images. Log in or Register.]
Yer missing the point of css
the css stylesheet is the layout, page colors, font characteristics, everything. The pages are jsut some html that fill the layout in.

For instance, in the css stylesheet, you have something like your header box:
HTML Code:
.header {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 1px solid black;
  float: center;
  width: 1000px;
  text-align: center;
  background-color: white;
  color: black;
  height: 30px;
  direction: ltr;
  font-family: Arial,"Microsoft Sans Serif",sans-serif;
  font-stretch: normal;
  font-style: normal;
  vertical-align: text-middle;
}
Then on the pages, you'd fill it with this:
HTML Code:
<div class="header">
<h1>whatever the fuck you want in the header box</h1>
</div>
So you have the stylesheet component named .header that defines that part of the page. Thats in the stylesheet.

Then the html page calls that component with the div tags and puts the text in.

Go look at the post I made on the other thread that had both stylesheet and page on the same file. Separate those from about the div wrapper open tag. Those would be the page and stylesheet separated. If I'm making a one-page site, I just put them together like I did in that file. You need them separated.

Can I suggest your buttons go along the top?
Ok great, that's what I was wondering. The other thread got kind of mussed up so I wanted a new start. I would like to place the buttons (nav bar) along the top, however; I do not know how to do this (I'm assuming it's CSS?). Thank you!