homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

Issue with CSS3 and background images

WebmasterWorld Senior Member 5+ Year Member

Msg#: 4652257 posted 12:08 pm on Mar 8, 2014 (gmt 0)

I have code to place icons like:
.error {
background: #EE4366 url(images/erroricon1.gif) no-repeat 28px 28px !important ;
border-color: #E83D88;

When I place background: there is an issue that background-image: -webkit-gradient will not work. How to do in the correct way to publish gradient controls and icon will be seen?

Issue: #EE4366 will be priority and see as #EE4366 but gradient control will be lost.

Is it possible background-image and also background?



Msg#: 4652257 posted 3:14 pm on Mar 11, 2014 (gmt 0)

use only
background-repeat: no-repeat;
background-size:28px 28px;

and after use gradient background

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved