Jump to content

Recommended Posts

Posted

I have a header id in my CSS page, see below:

 

#header

{ width:730px; height:190px; background:url(oenmw/oenmw.jpg) 50% no-repeat #99c; color:#222; margin:auto; font-weight:bold;

text-transform:lowercase;}

 

I do not understand (1)what the 50% no repeat means,

(2)what color: #222 is for

thanks,

JerryK

Posted (edited)

The 50% is a positioning element for the background image and the no-repeat means exactly that, do not repeat the image either horizontally or vertically.

This article explains in detail

http://www.w3schools.com/css/pr_background-position.asp

 

color: #222;

is the abbreviated HEX code for #222222 which is Charcoal and refers to the colour of the text in the #header div.

Edited by virtual

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...