Help > Layout & Coding Help > Post Reply     

Animal and money/latest login boxes

Default Avatar
BANNED
January 25th, 2014 4:49:45pm
1 Posts

I'm learning how to code patterned layouts, so I'm having problems coding so that the animal and money/latest login boxes show up as a solid color and not as the pattern.Β 


Thank youuuu ^.^




Image and video hosting by TinyPic

 


View Comments 1


Default Avatar
Riddle - Coding 1
January 25th, 2014 8:31:52pm
1 Posts

I usually set it so that the html attribute has my background pattern, and then the #wrapper id has a solid background color.

Β 

html {
background:#000; /*Pick a color in case the background doesn't load.*/
background-attachment:fixed; /*Could also be scroll.*/
background-image:url('http://yoururl.com/image.jpg'); /*The pattern URL.*/
}

body {
background:transparent;
border:0;
width:100%
}

#wrapper {
background-color:rgba(212,200,174,.20); /*I use RGBA so I can make it partically transparent.*/
max-width:1220px;
min-width:1220px;
width:1220px;
margin: 0px auto;
}




 

Player Avatar
𝔖𝔱𝔬𝔯π”ͺ ℭ𝔯𝔬𝔴 πŸ’€ The Artist Formerly Known as xxCHAOTIC
January 25th, 2014 8:51:12pm
1,853 Posts

on my layout it's actually done in reverse. My layout is one color and I have those boxes patterned. Here it is in my code.

Β 

.box2 table {background:url('http://colourlovers.com.s3.amazonaws.com/images/patterns/4067/4067929.png');color:#666;}

Β 

To make it a different color, it'd be the following:

Β 

.box2 table {background-color:#color;color:#666;}

Β 

The color:#666 is what makes the text in that box grey on mine.




q0w22ub.gif
Link Tree

 

Default Avatar
Duckie || Songbird Shelties || -college-ing-
January 26th, 2014 2:39:56am
815 Posts

Those helped a lot, thank you both!Β 

Im still stumped on the boxes where the horses/dogs would go though :/




 

Player Avatar
𝔖𝔱𝔬𝔯π”ͺ ℭ𝔯𝔬𝔴 πŸ’€ The Artist Formerly Known as xxCHAOTIC
January 26th, 2014 4:09:01am
1,853 Posts

Oh!

Β 

This does the HEADER. On mine it's a pattern.

.box th, .box2 th {background:url('http://colourlovers.com.s3.amazonaws.com/images/patterns/4067/4067929.png');color:#cd0000;border: 2px solid black;}

Β 

This does the... where the animal info goes. On mine it's black.

.box {background-color:#000000;}




q0w22ub.gif
Link Tree

 

Default Avatar
Duckie || Songbird Shelties || -college-ing-
January 27th, 2014 7:57:55pm
815 Posts

That did the trick, thank you Chao!!




 

View Comments 1