Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
How do I make Webpage Sections the same on all pages with Css?!?
Old 06-29-2008, 03:14 AM How do I make Webpage Sections the same on all pages with Css?!?
Skilled Talker

Posts: 52
Trades: 0
ok so, it's kind of like how any page you go on on this website you'll still see the top banner, the user cp-private message-quick links-new posts-forum rules- those hyperlinks.. and more is all the same no mater what page you go to on here. I'm assuming this is done with css. I am trying to do basically the same thing with my website. I want the same 3 pictures that make my head banner, and 5 hyperlinks to appear on every page of my website. but it seems to me that since i'm using background-image several times in the body { } part of my css, that when i describe what i want from the background-images it wouldn't know which one im describing?

either way, i'm still new so basically just tell me how to do it please.
thank you

oh and i'd like this to be put into my body { } part in my css, since that way it will make every link i use that css on the same without having to do any work.

ty
Webmaster Chris is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-29-2008, 04:57 AM Re: How do I make Webpage Sections the same on all pages with Css?!?
Skilled Talker

Posts: 52
Trades: 0
if that didn't make sence just let me know
or ask me to clarify anything

it's probably pretty simple but im new and not quite sure how to explain stuff yet
Webmaster Chris is offline
Reply With Quote
View Public Profile
 
Old 06-29-2008, 03:13 PM Re: How do I make Webpage Sections the same on all pages with Css?!?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Any element on any page can be made similar or the same to other pages as long as it has the same identifier (a class, an id, the same tag, or nesting pattern), and as long as the stylesheet is linked to by each of those pages, and is correctly identified in the stylesheet.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 06-29-2008, 05:45 PM Re: How do I make Webpage Sections the same on all pages with Css?!?
Skilled Talker

Posts: 52
Trades: 0
Quote:
Originally Posted by wayfarer07 View Post
Any element on any page can be made similar or the same to other pages as long as it has the same identifier (a class, an id, the same tag, or nesting pattern), and as long as the stylesheet is linked to by each of those pages, and is correctly identified in the stylesheet.
ok so should i just copy + paste the identifiers from the html or is there a way i could make it appear automatically just by linking the css?
Webmaster Chris is offline
Reply With Quote
View Public Profile
 
Old 06-29-2008, 07:09 PM Re: How do I make Webpage Sections the same on all pages with Css?!?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You could also use server-side includes (php or .net) and then you'd only have to modify the included sections rather than modify on every page.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-29-2008, 08:01 PM Re: How do I make Webpage Sections the same on all pages with Css?!?
Skilled Talker

Posts: 52
Trades: 0
Quote:
Originally Posted by LadynRed View Post
You could also use server-side includes (php or .net) and then you'd only have to modify the included sections rather than modify on every page.
i don't know thoes yet
there has to be a way i can do it within the body { } section of my css
is there?
Webmaster Chris is offline
Reply With Quote
View Public Profile
 
Old 06-30-2008, 01:03 PM Re: How do I make Webpage Sections the same on all pages with Css?!?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Unfortunately, until CSS3 is widely accepted and supported by all browsers, there is no way to actually add content with CSS.

Even once statements such as the pseudoselector #element:before are universal, they still won't be able to compete with the power of SSI.

You can learn SSI in about 10 minutes:
on PHP(if you are running Apache servers) http://us3.php.net/include/
or on .net(for Microsoft servers) http://msdn.microsoft.com/en-us/libr...e3(VS.71).aspx
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 06-30-2008, 05:53 PM Re: How do I make Webpage Sections the same on all pages with Css?!?
Skilled Talker

Posts: 52
Trades: 0
Quote:
Originally Posted by wayfarer07 View Post
Unfortunately, until CSS3 is widely accepted and supported by all browsers, there is no way to actually add content with CSS.

Even once statements such as the pseudoselector #element:before are universal, they still won't be able to compete with the power of SSI.

You can learn SSI in about 10 minutes:
on PHP(if you are running Apache servers) http://us3.php.net/include/
or on .net(for Microsoft servers) http://msdn.microsoft.com/en-us/library/3207d0e3(VS.71).aspx
hmm
ok ty
i'll definately be going into php and some other languages after i'm happy with my abilities with html/css
Webmaster Chris is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How do I make Webpage Sections the same on all pages with Css?!?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32677 seconds with 12 queries