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
https://forums.phpfreaks.com/topic/111973-common-page-elements/#findComment-574750
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
https://forums.phpfreaks.com/topic/111973-common-page-elements/#findComment-575358
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.