4 replies [Last post]
kiricr
kiricr's picture
Offline
newbie
NY
Last seen: 9 years 28 weeks ago
NY
Timezone: GMT-4
Joined: 2011-07-11
Posts: 3
Points: 4

I did my CSS div tag based layout for the home page. For the bio page
I would like same structure but different content. I duplicated the index.html page,
renamed it Bio.html, however when I change content for one of the divs it also affects the Index.html page. Whats
the best way to have different page backgrounds in the same structure on different pages? Smile Smile

Thanks

Kiri

Deuce
Deuce's picture
Offline
Guru
Somewhere, USA
Last seen: 3 years 28 weeks ago
Somewhere, USA
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4424
Points: 1843

Give the body an ID and style

Give the body an ID and style off of it.

all » http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

kiricr
kiricr's picture
Offline
newbie
NY
Last seen: 9 years 28 weeks ago
NY
Timezone: GMT-4
Joined: 2011-07-11
Posts: 3
Points: 4

Example

Thanks, can you please show by an example?

Kiri

Deuce
Deuce's picture
Offline
Guru
Somewhere, USA
Last seen: 3 years 28 weeks ago
Somewhere, USA
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4424
Points: 1843

Example

<body id="home">
<!-- more html here -->
</body>

<body id="internal">
<!-- more html here -->
</body>

body#home { // css code here }
body#internal { // css code here }

all » http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

kiricr
kiricr's picture
Offline
newbie
NY
Last seen: 9 years 28 weeks ago
NY
Timezone: GMT-4
Joined: 2011-07-11
Posts: 3
Points: 4

Much appreciated - will try

Much appreciated - will try this