PDA

View Full Version : Changing the colour


Jase2
03-27-2008, 10:36 PM
Hi all,

I'm not so good with CSS -- so I thought I'd ask for some assistance :)

First of all, can anyone tell me the html colour code these are using for that blue: www.techspot.com/blog

I want to change my blog to that colour -- but haven't got a clue how to do it. Here is my stylesheet:

body {
background: #ffffff;
margin: 0;
padding: 0;
font: 9pt Verdana, arial;}

#wrapper {
width: 1000px;
margin: 0 auto;}


/* HEADER */

#header {
width: 100%;
background: url(images/bg.jpg) repeat-x;
height: 181px;}

/* TOP NAVIGATION */

#navbar {
margin-top: 0;
width: 100%;}

.menu * {
padding: 0;
margin: 0;}

.menu {
width: 100%;
padding: 0;
margin: 0;}

.menu ul {
margin: 0;
position: relative;
list-style: none;
list-style-type: none;
padding-right: 25px;}

.menu ul li {
float: right;
display: inline;
padding-top: 0;
padding-right: 30px;
list-style: none;}

.menu li a {
float: left;
display: inline;
font: bold 9pt Verdana, arial;
text-align: center;
padding: 12px 0;
text-decoration: none;
text-transform: uppercase;
color: #FFFFFF;}

.menu li.current_page_item a {
background: url(images/arrow.gif) bottom no-repeat;
color: #DCEAF4;}

.menu li a:hover {
text-decoration: none;
background: url(images/arrow.gif) bottom no-repeat;
color: #FFFFFF;}

/* BLOG NAME PROPERTIES */

h1 {
clear: both;
margin: 0;
text-align: left;
padding-top: 30px;
padding-left: 40px;
letter-spacing: 1px;
font: bold 2.4em Verdana, serif;}

a.mainlink {
text-decoration: none;
color: #FFFFFF;}

a.mainlink:hover {
text-decoration: none;
color: #FFFFFF;}

#description {
clear: both;
padding-top: 12px;
padding-left: 45px;
font: 1.1em Verdana, serif;
color: #DCEAF4;}

/* SIDEBAR */

#leftnav {
float: left;
width: 210px;
padding-top: 7px;
padding-left: 15px;
padding-right: 30px;}

#mainnav {
float: left;
width: 210px;
padding-top: 7px;
padding-left: 30px;
padding-right: 15px;}

.nav h2 {
clear: both;
background: #024A82;
font: bold 9pt Verdana, arial;
text-indent: 20px;
margin-top: 15px;
padding: 7px 0;
color: #DCEAF4;}

.nav * {
padding: 0;
margin: 0;}

.nav li {
list-style: none;}

.nav li a {
display: block;
background: url(images/link.gif) bottom no-repeat;
padding: 7px 0;
text-indent: 15px;
width: 210px;
font: 9pt Verdana, arial;
text-decoration: none;
text-transform: capitalize;
color: #6E6E6E;}

.nav li a:hover {
color: #033D72;}

/* MAIN PROPERTIES */

#main {
float: left;
padding-top: 20px;
line-height: 16px;
text-align: justify;
font: 10pt verdana, serif;
width: 490px;
color: #3E3C3C;}

*html #main {
width: 487px;}

.ad {
padding-top: 30px;}

h3 {
padding-bottom: 5px;
margin: 3px 0px 3px 0px;
font: bold 14pt "Lucida Sans", arial;
letter-spacing: -1px;
text-align: left;
margin-bottom: 14px;
color: #033D72;}

a.link {
margin-top: 20px;
text-decoration: none;
color: #033D72;}

a.link:hover {
text-decoration: none;
color: #033D72;}

.reply {
clear: both;
padding-top: 20px;
padding-bottom: 5px;
margin: 3px 0px 3px 0px;
font: bold 14pt "Lucida Sans", arial;
letter-spacing: -1px;
text-align: left;
margin-bottom: 14px;
color: #033D72;}

blockquote {
padding-left: 7px;
padding-right: 5px;
font-size: 8pt;
border-left: 3px solid #025590;
color: #8F9192;}

.clear {
clear: both;}

/* AUTHOR TEXT */

h5 {
font: 8pt Verdana, arial;
margin-top: -10px;
color: #4B4B4B;}

h5 strong {
color: #1C689D;}

.entries {
clear: both;
height: 25px;
padding: 0;
margin-top: 35px;
margin-bottom: 20px;}

.entries a {
text-decoration: none;}

.entries a:hover {
text-decoration: none;
color: #043264;}

.left {
float: left;}

.right {
float: right;}

/* COMMENTS */

.com {
clear: both;
text-align: right;
height: 18px;
background: url(images/line.gif) bottom repeat-x;
padding-right: 10px;
margin-bottom: 20px;
color: #3E3C3C;}

.com a {
text-decoration: none;
color: #1B609A;}

.com a:hover {
text-decoration: none;
color: #000000;}

.author {
padding: 7px 0 0 10px;
font: bold 13pt Times New Roman, arial;
color: #1D588A;}

.author a {
color: #4C83B1;}

.alt {
background-color: #F5F8FA;}

.comment {
padding: 0 10px;}

.userinfo {
padding: 0 10px 10px 0;
text-align: right;}

/* FOOTER */

#footer {
clear: both;
background: url(images/footer.gif) repeat-x;
width: 100%;
height: 44px;
font-size: 8pt;
color: #043062;}

#footer a {
font-size: 8pt;
text-align: left;
text-decoration: none;
color: #043062;}

#footer a:hover {
text-decoration: none;
color: #1B508D;}

/* INPUT PROPERTIES */

#search {
margin-top: 12px;
margin-bottom: 30px;}

.searchform {
background-color: #FFFFFF;
border: 1px solid #A3A4A3;
font-weight: bold;
padding-left: 6px;
color: #878887;}

.field {
background-color: #F5F8FA;
border: 1px solid #BCBCBB;
color: #6E6E6E;}

.comments {
background-color: #F5F8FA;
border: 1px solid #BCBCBB;
color: #6E6E6E;}

.button {
font-weight: bold;
background-color: #FFFFFF;
border: 1px solid #A3A4A3;
color: #878887;}

* html .button {
height: 20px;}

/* IMAGE STYLE */

img {
float: left;
padding-right: 5px;
border: 0;}

.wp-smiley {
float: none;}

/* GENERAL LINK STYLE */

a {
text-decoration: none;
color: #1C689D;}

a:hover {
text-decoration: none;
color: #034379;}

My blog can be found here - www.techsupportteam.org/blog/

What would I change to get the header the same colour as that websites I linked you to, and the sidebars.

Thanks!

Regards Jason :)

legionofangels
03-28-2008, 01:35 AM
I have no idea on changing your place to look like that, but I can give you the html color codes.

The lighter blue with the pictures in the middle is:

5d7584

The darker blue with the nav bar and the title at the top is:

314252

Jase2
03-28-2008, 04:08 AM
Thank you!

Regards Jason :)

SEOvB
03-28-2008, 04:32 AM
Check out this free tool for grabbing colors: http://www.iconico.com/colorpic/gettingStarted.aspx

Then use another free tool like CSS vista http://litmusapp.com/labs and just start changing stuff till you get what you want. You'll learn CSS and have fun doing it.

Opserty
03-28-2008, 10:46 AM
I just Print Screen and Ctrl+V into Photoshop. Then use the eye dropper tool ;)

Jase2
03-28-2008, 11:42 AM
Thanks for the replies.

Well, CSS is not my main target, really. But it would be a plus if I managed to learn it. Currently learning Java, PHP and C++.

Regards Jason :)

Jase2
03-31-2008, 06:27 PM
What is the html colour for the colour at the side here?

Thank you.

Regards Jason :)

Boofo
03-31-2008, 06:43 PM
Get this program and you can find them easily yourself:

http://www.nattyware.com/pixie.html

I've been using it for years. Just hover over the color you want and it shows you the code for it.

Jase2
03-31-2008, 06:47 PM
Thanks for that Boofo, quite an handy little program.

Regards Jason :)

Boofo
03-31-2008, 06:47 PM
Yep, I like it.

Princeton
04-01-2008, 12:08 PM
if you use Firefox install the ColorZilla extension (http://www.iosart.com/firefox/colorzilla/)
the Webpage Color Analyzer feature is great

Jase2
04-01-2008, 05:09 PM
Thanks Princeton!

Regards Jason :)

Ohiosweetheart
04-01-2008, 05:38 PM
if you use Firefox install the ColorZilla extension (http://www.iosart.com/firefox/colorzilla/)
the Webpage Color Analyzer feature is great

quite a handy little tool ;)

Jase2
04-02-2008, 01:22 PM
I'm hoping some one can help me out with this, since my CSS knowledge is lacking.

You can view my blog here: www.techsupportteam.org/blog

You see I've changed half the outside with my colour blue: 314252

However, I cannot figure out how to change the other half and the header to that colour, here is my CSS:

/*
Theme Name: StudioPress
Theme URI: http://www.dailyblogtips.com/studiopress-wordpress-theme-released/
Description: A clean, Adsense-ready WP theme.
Author: Daily Blog Tips
Author URI: http://www.dailyblogtips.com/
Version: 1.0
*/

/* Reset Defaults Starts */

* {
margin: 0;
padding: 0;
}

h1, h2, h3, h4, h5, h6, p, blockquote {
margin: 0;
padding: 10px;
}

a {
color: #215679;
}

a:hover {
color: #4C82A6;
}

blockquote {
margin: 5px 15px;
padding: 5px 5px;
background: #8CB5D8;
border: 1px solid #3A7CAC;
}

code {
color: #3366CC;
}

a img {
border: none;
}


/* Reset Defaults Ends */

body {
position: relative; /* Fixes browser resizing bug in IE6 */
margin: 0 auto 10px auto;
width: 950px;
font-family: Trebuchet MS, sans-serif;
text-align: center; /* IE Centering Technique */
background: #314252 url(images/bgbody.jpg) repeat-x top left;
}

#wrapper {
text-align: left; /* IE Centering Technique */
}

.topcurve {
margin-top: 15px;
height: 13px;
background: url(images/bgtop.gif) left top no-repeat;
}

.topcurvewhite {
margin-top: 15px;
height: 13px;
background: url(images/bgtopwhite.gif) left top no-repeat;
}

.bottomcurve {
margin: 0;
height: 13px;
background: url(images/bgbottom.gif) left bottom no-repeat;
}

.bottomcurvewhite {
margin: 0;
height: 13px;
background: url(images/bgbottomwhite.gif) left bottom no-repeat;
}

#header {
margin: 0;
padding: 0 0 0 0;
}

#header .topright {
float: right;
position: relative;
margin: 0;
padding: 0;
text-align: right;
color: #fff;
}

#searchform {
margin-left: 0;
margin-top: 0;
margin-right: 0;
}

#searchform {
margin-left: 5px;
width: 213px;
padding-top: 8px;
height: 28px;
background: #ccc;
background: url(images/search.gif) left 3px no-repeat;
}

*:first-child+html #searchform { /* Filter for IE7 */
padding: 6px 0;
}

* html #searchform { /* Filter for IE6 */
padding: 6px 0;
}

#searchbox {
margin-left: 5px;
margin-bottom: 3px;
width: 150px;
background: none;
border: none;
}

#searchbutton {
width: 50px;
background: none;
border: none;
}

#searchbutton:hover {
cursor: pointer;
}

#underheader {
clear: both;
margin-top: 20px;
padding: 0 0 15px 0;
}


#underheader h1.sitename {
padding: 0 0 0 0;
position: relative;
font-size: 23pt;
width: 600px;
}

#underheader h1.sitename a {
color: #fff;
text-decoration: none;
}

#underheader h1.sitename a:hover {
color: #4C82A6;
text-decoration: none;
}

#underheader h2.sitedesc {
padding: 0 0 0 0;
position: relative;
font-size: 12pt;
color: #314252;
}


#underheader #toprss{
float: right;
position: relative;
margin: 0 0 0 0;
padding: 0;
text-align: right;
}

/* Menu */

#nav {
clear: both;
margin: 10px 0 -15px 0;
}

#nav ul {
margin: 0;
padding: 0;
list-style: none;
}

#nav li {
float: left;
margin-right: 10px;
}

* html #nav li a { /* Filter for IE6 to prevent li stacking */
float: left;
text-decoration: none;
}

* html #nav li a span { /* Filter for IE6 to prevent li stacking */
float: left;
margin-left: 4px;
text-decoration: none;
}

#nav li a {
display: block;
height: 26px;
background: url(images/bgtableft.gif) left top no-repeat;
text-transform: lowercase;
font-size: 10pt;
text-decoration: none;
}

#nav li a span {
display: block;
margin-left: 6px;
padding-left: 5px;
padding-right: 12px;
line-height: 26px;
font-weight: bold;
color: #FFF;
background: url(images/bgtabright.gif) right top no-repeat;
text-decoration: none;
}

#nav li a:hover {
background-position: left -26px;
text-decoration: none;
cursor: pointer; /* For IE6 */
}

#nav li a:hover span {
background-position: right -26px;
color: #000;
}

#nav li.current_page a {
background-position: left -26px;
}

#nav li.current_page a span {
background-position: right -26px;
color: #000;
}

/* Main content */

#main {
clear: both;
width: 925px; /* Overrides miscalculation in IE6; ignored by other browsers. */
margin: 0;
padding: 0 15px 15px 10px;
background: #fff;
}

#contentwrapper {
float: left;
width: 550px;
}

#content {
}

#content .pageTitle {
padding: 5px 10px 0 10px;
font-size: 14pt;
color: #314252;
}

.contentsearch {
margin: 0 0 40px 100px;
}

.contentsponsors {
margin: 0 0 30px 190px;
}

.adsense_top {
text-align:center;
margin:10px 0 25px 0;
font-size:9pt;
}

.adsense_sidebar {
text-align:center;
margin:0 0 20px 0;
font-size:9pt;
}

.post {
margin: 20px 0 25px 0;
}

#content h2, #content h3, #content h4, #content h5, #content h6 {
padding: 0 10px;
font-weight: bold;
}

#content h2 {
font-size: 14pt;
}

#content h3 {
font-size: 12pt;
}

#content h4, #content h5, #content h6 {
font-size: 11pt;
}

h2.homeTitle {
margin: 0 0 15px 0;
}

h2.postTitle {
padding: 0 10px;
font-size: 14pt;
font-weight: bold;
color: #000;
}

h2.postTitle a {
font-size: 14pt;
font-weight: bold;
text-decoration: none;
color: #000;
letter-spacing: -1px;
}

h2.postTitle a:hover {
color: #215679;
}

.postMeta {
padding: 2px 10px 4px 10px;
font-size: 9pt;
color: #333;
}

.postMeta .date {
background: url(images/date.gif) left no-repeat;
padding: 0 0 0 15px;
}

.postMeta .filed {
background: url(images/folder.gif) left no-repeat;
padding: 0 0 0 18px;
margin: 0 0 0 3px;
}

.postMeta .commentcount {
background: url(images/comments.gif) left no-repeat;
padding: 0 0 0 18px;
margin: 0 0 0 3px;
}

.postMeta a {
text-decoration: none;
}

.postContent img {
margin: 10px;
border: 3px solid #CCC;
}

#content p, .postContent p {
padding: 5px 10px;
font-size: 10pt;
color: #000;
}

.postContent ul, ol {
padding: 0 0 0 35px;
}

.postContent ul li, ol li {
font-size: 10pt;
color: #000;
}

.postTags {
margin: 15px 10px;
font-size: 9pt;
color: #000;
background: #eee;
padding: 2px 4px;
}

p.comments {
clear: both;
padding: 5px 10px 5px 10px;
}

p.comments a {
padding-left: 20px;
background: url(images/comment.gif) left top no-repeat;
font-size: 10pt;
text-decoration: none;
}

.commentlist {
margin: 10px 0;
font-size: 10pt;
list-style: none;
}

.commentlist li {
margin: 0 0 10px -25px;
background: #e8eef3;
width: 510px;
}

.commentlist li.alt {
margin: 0 0 10px -25px;
background: #FFFFFF;
width: 510px;
}

.commentlist cite {
padding: 10px;
font-size: 10pt;
}

.commentlist cite a {
}

.commentmetadata {
padding: 10px;
}

.comment h3 {
padding: 0 10px;
font-size: 12pt;
font-weight: bold;
text-decoration: none;
color: #000;
}

.comment p {
padding: 10px;
font-size: 10pt;
color: #000;
}

.comment a {
text-decoration: none;
}

.comment a:hover {
text-decoration: underline;
}

.comment textarea {
width: 510px;
}

.comment #submit {
width: 118px;
height: 30px;
background: url(images/commentbutton.gif) left top no-repeat;
border: none;
font-size: 9pt;
color: #333;
}

.comment #submit:hover {
cursor: pointer;
}

.navigation {
margin: 10px 0;
color: #314252;
text-align: center;
font-size: 10pt;
}

.navigation a {
text-decoration: none;
}


/* Start of sidebar */

#allsidebars {
width:355px;
float:right;
}


/* Sidebar top welcome box */

.sidebarswrapper {
margin-top: 0px;
padding-top: 9px;
width: 355px;
background: url(images/bgsidebartop.gif) left top no-repeat;
}

.sidebars {
width: 355px;
background: #363636;
}

.sidebars h2 {
padding: 0 0 2px 0;
font-size: 11pt;
color: #fff;
letter-spacing: -1px;
}

.sidebars p {
padding: 2px 0;
font-size: 9pt;
}

#welcome {
clear: both;
padding: 0 10px;
}

#welcome a {
display: inline;
color: #4C82A6;
}

#welcome a:hover {
color:#fff;
}

#welcome p {
color: #fff;
margin-top: 5px;
padding-left: 70px;
background: url(images/welcome.gif) left top no-repeat;
}

.sidebarsbottom {
clear: both;
width: 355px;
height: 18px;
background: url(images/bgsidebarbottom.gif) left bottom no-repeat;
}


/* Sidebar 2 columns widget-ready */

.sidebarsB {
width: 355px;
margin-top: 15px;
}

.sidebar1 {
float: left;
width: 165px;
}

.sidebar2 {
float: right;
width: 165px;
}

.sidebarsB h2 {
padding: 2px 7px;
font-size: 11pt;
color: #fff;
letter-spacing: -1px;
background: url(images/sidebar_h2.gif) left no-repeat;
margin-bottom: 3px;
}

.sidebarsB table {
width: 160px;
}

.sidebarsB ul {
margin: 0;
padding: 0 0 5px 0;
}

.sidebarsB li {
margin-bottom: 20px;
list-style: none;
font-size: 9pt;
}

.sidebarsB li ul {
padding: 0;
}

.sidebarsB ul ul li {
margin: 0;
padding: 3px 2px 2px 16px;
color: #222;
background: url(images/bullet.gif) left 7px no-repeat;
line-height: 17px; /* Required for cross-browser consistency; cross-browser defaults vary. */
border-bottom: 1px dotted #ccc;
}

.sidebarsB a {
display: block;
color: #333;
text-decoration: none;
display: inline;
}

.sidebarsB a:hover {
color: #4C82A6;
text-decoration: underline;
}

.sidebarsB p {
padding: 2px 0;
font-size: 9pt;
}

#tag_cloud a {
display: inline;
}

.sidebarsB ul.children li {border-bottom:none;}
.sidebarsB ul.children {margin-bottom:-5px;}


/* Footer */

#footer {
clear: both;
padding-top: 0;
color: #fff;
text-align: center; /* IE Centering Technique */
background: #000;
}

#footer p {
padding: 0;
font-size: 8pt;
color: #fff;
text-align: center;
}

#footer a {
color: #87BBD9;
}

#footer a:hover {
color: #fff;
}

#credits {
clear: both;
margin: 0 auto;
line-height: 19px;
}


/* Extras */

.cleared {
clear: both;
}

.left {
float:left;
}

.right {
float:right;
}

#nextprevious {
padding:10px;
font-size:80%;
}

Again, this is the html colour I'm using: 314252

I'd appreciate if someone could help me out here.

Thank you.