PHPQuack Posted June 26, 2008 Share Posted June 26, 2008 Can you create common page elements with css or no? Link to comment https://forums.phpfreaks.com/topic/111973-common-page-elements/ Share on other sites More sharing options...
fanfavorite Posted June 26, 2008 Share Posted June 26, 2008 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 More sharing options...
haku Posted June 26, 2008 Share Posted June 26, 2008 You cannot creat elements with CSS. You can only change the appearance and position of things that already exist. Link to comment https://forums.phpfreaks.com/topic/111973-common-page-elements/#findComment-574757 Share on other sites More sharing options...
PHPQuack Posted June 26, 2008 Author Share Posted June 26, 2008 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 More sharing options...
TheFilmGod Posted June 26, 2008 Share Posted June 26, 2008 Although you can draw a parallel of css margins to padding in a table... but of course, it is very difficult to do that. The two are completely different in every humanly way possible. Link to comment https://forums.phpfreaks.com/topic/111973-common-page-elements/#findComment-575467 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.