Jump to content

no-repeat + position


williamrouse

Recommended Posts

When I see CSS statements with "no-repeat" and then a position I am unclear. Is this suppose to say do not repeat this to the position specified but every where else?

 

Examples I found in some code I was looking at

Thanks!

 

background: url(../images/nav_item_bullet_current.]png) no-repeat left;
background: url(../images/nav_bottom.png) no-repeat top;
background: url(../images/sendmessage.png) no-repeat bottom;
background: url(../images/separator_line.png) repeat-x right 12px;
background: #fff url(../images/separator_right.png) no-repeat right;
background: url(../images/field_bg.png) no-repeat top left;

Link to comment
Share on other sites

It means the background image does not repeat, hence it shows up only once, and the position tells it where it will appear (default is top left). Here the whole thing is explained: http://www.csstutorial.net/2010/03/adding-a-background-image-with-css/

 

 

I'm not exactly sure where the code samples you provide come from and without seeing the whole thing, it's hard to judge, but that doesn't look right.

Link to comment
Share on other sites

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...