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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...