Topic: css multicolor background (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=29976" title="Pages that link to Topic: css multicolor background (Page 1 of 1)" rel="nofollow" >Topic: css multicolor background <span class="small">(Page 1 of 1)</span>\

 
jmhc
Paranoid (IV) Inmate

From: Santo Domingo, DN, Dominican Republic
Insane since: Feb 2002

posted posted 02-11-2008 02:58

Hello there:

Right now I'm trying to design a webpage, and I'm newbie in the css world, so please be kind.

I'm planning to use a background of three colors for my page, the first part I'm planning to use it for the logo, the second part for the page content and the third part for the credits.

The issue with this setup is that the content part will be variable, so I'll have to make that color expand as long as the content text does and I don't know how to do so.

Can somebody tell me how can I do this???.

P.S.: If need more information let me know.

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 02-11-2008 08:03

Hi,

Basically you need to set the background of each section ( logo/header, content , credits/footer ), instead of just that of the body. If the content is centered or something, use paddings on the sections or margins on their children to position the content within the full width sections.

HTH

jmhc
Paranoid (IV) Inmate

From: Santo Domingo, DN, Dominican Republic
Insane since: Feb 2002

posted posted 02-11-2008 15:34
quote:
Basically you need to set the background of each section ( logo/header, content , credits/footer ), instead of just that of the body. If the content is centered or something, use paddings on the sections or margins on their children to position the content within the full width sections.



This can be acomplished with css ??????

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 02-11-2008 16:12

Yep.

Have you checked CSS CSS and the associated sites ? or watched at some modern sites' markup and stylesheet ?

At worst I could upload an example of what you want after work.

Blaise
Paranoid (IV) Inmate

From: London
Insane since: Jun 2003

posted posted 02-11-2008 16:49

How unnecessarily confusing, two FAQs called CSS...

jmhc, have you got together a design yet for your site? Or have you started on the code, we could take a look to see if you're heading in the right direction there.

jmhc
Paranoid (IV) Inmate

From: Santo Domingo, DN, Dominican Republic
Insane since: Feb 2002

posted posted 02-11-2008 17:04

I'll upload tonight a sample of what I want to acomplish.

Thanks for your help

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 02-14-2008 18:45

so for your background of your content, it would have one color, the div containing the logo would have a different color and the credits would have something different as well.

code:
content{
   background-color:#FF0800;
}

#logoDiv{
    background-color:#00FF00;
}

#creditsDiv{
  background-clor:#0000FF
}



from there you just make all your other settings as far as padding, fonts, etc...

Later,

C:\

DL-44
Lunatic (VI) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 02-14-2008 19:16

This sounds like a serious case of RTFM.

There are a lot of great CSS introductory tutorials out there, and it sounds like a good HTML tutorial could be needed as well.

If you set your HTML up properly, it will be a very simple matter to style the sections however you need them.

For the CSS tutorials, click the Gurus Network button at the bottom. There are several very good ones there.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu