Jump to content

Common page elements?


PHPQuack

Recommended Posts

What do you mean "create" common page elements.  Common page elements can be used:

 

p {

margin-left: 10px;

}

 

h1,h2,h3 {

font-size: 20px;

}

 

If you have certain custom things that need to be used on each page, create a class:

 

.sometext {

font-weight:bold;

font-decoration:underline;

}

 

Then you can use it like <p class="sometext">, <span class="sometext">, etc.

 

If this isn't what you are looking for, please elaborate on your questions. 

Link to comment
Share on other sites

I'm using doctype html strict. I'm trying to create a left navigation area, the footer and header, that'll be the same on every page, like what FrontPage calls shared borders. I read something about css that was referring to those terms, which I cannot find again, but not sure if that's what it meant, which from what I recalled, had to do with "margin". From the replies, sounds like this is not what css can do?

 

From what I understood about css "margin", it's is mainly to create space around elements. So, in a way, it's KIND of like padding for a table?

 

Just need a little clarification, so that I don't keep looking in the wrong places.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.