is it posible the change hard coded images? - Better Battlelog Forums #1853

Sitemap
Topicstarter
i got a hard coded image i want to replace
cos the hard coded image don't look good in the theme am making.
is it posible the change hard coded images?
What you mean with hardcoded image?
Topicstarter
brain wrote:
What you mean with hardcoded image?


the Upcoming Premium Releases block shows the premium log in dark

http://battlelog-cdn.battlefield.com/public/premium/logo_clean_dark.png


I would like to change it to this image so it will look better in my theme

http://battlelog-cdn.battlefield.com/public/base/shared/header-menu-premium.png
IMG[src*="logo_clean_dark.png"]{
height:11px!important;
padding-left:80px!important;
width: 0!important;
background-image:url("image_data_url") !important;
background-repeat: no-repeat !important;
}
Juress solution should work, if not you can try a more flexible solution where you can insert a new element with css after a existing element with ":after"
For example you can hide out the img tag you don't like and insert a new visible element after that with css.
Tutorial:
http://www.w3schools.com/cssref/sel_after.asp
UUuu, didnt know that, thanks :)
Topicstarter
juress wrote:
IMG[src*="logo_clean_dark.png"]{
height:11px!important;
padding-left:80px!important;
width: 0!important;
background-image:url("image_data_url") !important;
background-repeat: no-repeat !important;
}

thanx it did the trick