I'm using the Unicode Character 'MEDIUM BLACK CIRCLE' aka:
⚫
and then changing its color. It works fine on most of my devices, but on my android phone and some collegues PC's (same pc brand and browser) it is always black and not #009FDA.
<span style="color:#009FDA;">⚫ </span>
How do solve this?
Solved!
solution(font-awesome):
<i class="fa fa-circle" style="color:#009FDA;" aria-hidden="true"></i>
I'm still very interested in why this happend if anyone knows..
You have 2 options
Option 1:Unicode charecter
Use Unicode charecter. it works
body{
font-size:15px;
line-height:15px;
}
<span style="color:#009FDA; ">⚫ </span>
<br/>
<span style="color:#009FDA; font-size:250%; height:15px; ">•</span>
Option 2:Shape round using border-radius (works fine in all browsers)
Class for circles which has border-radius:50%; and same width & height
span.circle{
height:10px;
width:10px;
border-radius:50%;
background-color:#009FDA;
display:inline-block;
}
<span class='circle'></span>
Other options: You can use Font-awesome, svg or images
Related
Iv looked every where and most people are changing the backgrounds first :p is there any way I could change the color straight away without changing the background ? Thanks a lot, examples will be gladly appreciated :)))
Just use "color" on your CSS. Sample :
<div>
<i class="icon-5x icon-search red"></i>
</div>
<div>
<i class="icon-5x icon-search green"></i>
</div>
<div>
<i class="icon-5x icon-search blue"></i>
</div>
Then for coloring it :
div {
width:200px;
height:80px;
background: grey;
margin-bottom: 6px;
}
i.icon-5x {
display:block;
text-align: center;
}
i.green {color:green}
i.blue {color:blue}
i.yellow {color:yellow}
And finally :
DEMO
Having some problems...
<span style='position: relative; font-size:0px;'>
<a href="x.php?x=1898&y=2019">
<img style='background:url(images/4.png)' class='xyz' data-alt-src='images/X.png' data-x='y' data-coords='1898, 2019' src="images/4.png" />
</a>
<span style='position:absolute; display:block; right:0px; bottom:0px; font-size:15px; background-color:green; color:white; line-height:0px;'> 8 </span>
</span>
What I have here is one of many, each of these code blocks overlays text (in this case an 8) over an image. Each of the code blocks buts up against one another and then there are line breaks to create multiple rows, etc.
The problem is the position:absolute and the background-color:green. Without absolute positioning, the background is green, but it doesn't overlay, with absolute positioning, there is no background color.
How do I solve the issue easily and quickly?
You'll want to remove/change the following from your inline styling:
line-height:0px;
For example, try it using the following:
line-height:10px;
You will also want to manipulate the size of the green span as needed.
Whenever I try to create 3D Buttons by nesting elements within an element... I have no problems in Google and Firefox... however in IE10... there seems to be a disconnect between the .parent:active and it's children...
Something like this:
<ul class="checkout">
<li id="creditcard">
<a href="#" class="a-btn">
<span class="a-btn-left">Proceed to Checkout</span>
<span class="a-btn-slide"><img class="slide-icons" src="icons.png" /></span>
<span class="a-btn-right">
<span class="arrow"></span>
<span class="cards"></span>
</span>
</a>
</li>
</ul>
Here is a JS fiddle: http://jsfiddle.net/H75jN/
All of the Transforms work in IE10... which makes me even more confused about why the :active function is not working.
Am I targeting the wrong class?
Replace <a> with <button>
Add extra CSS:
padding:0 0 5px 0; /* This is necessary for the Box shadow to work in Chrome */
border:0;
outline:0;
overflow:visible; /* Necessary for any images to overflow past button edges */
cursor:pointer;
background:none; /* This eliminates grey background in FF and IE */
box-sizing:content-box; /* By default, Chrome BUTTONS are border-box, this fixes it */
Finish!
JS Fiddle: http://jsfiddle.net/D8nJ6/1/
BAM!
In IE9, there's still an issue with the rounded-borders, but it has something to do with the Rounded-Border + Background-Gradient combination. Still looking for a fix.
I'm building a site that is almost complete. The problem I am having is with IE7 and displaying images that look very distorted/muddy.
First how it looks in all the other browsers I tested, including IE8.
Removed due to link limit on new accounts
And then the muddy one from IE7
Muddy/Distorted Image
After doing some googling it looks like it has to do with the pixel transparency in PNG images on IE7.
First I tried setting a solid background color in the actual background file. This did not work as the image was still very muddy and distorted.
Next I tried specifying a fixed width and height but still the same result. Not sure what else to try at this point.
Any suggestions I am willing to try.
Here is the code pertaining to the element.
.feature {
padding-top:10px;
border-top:solid 1px #ccc;
width:440px;
margin:0 auto;
padding-bottom:5px;
}
.featureimg {
float:left;
width:190px;
}
.featureimg img {
max-height:90px;
max-width:190px;
vertical-align:middle;
}
.featuretext {
float:right;
text-align:left;
width:250px;
}
<div class="feature">
<div class="featureimg">
<img src="images/certipur.png" alt="" />
</div>
<div class="featuretext">
<div class="featurehead red">
Sealed with comfort and confidence
</div>
<p>
TEXT BLOCK
</p>
</div>
<div class="clear">
</div>
</div>
Here is the link to original file http://imgur.com/z2SoV
In case you still care: http://imgur.com/9H9nFHe
I tried using BrowserStack.com to check for the image using IE7 and it didn't look muddy at all. I guess it your VM display settings but i think it shows up perfectly fine. :)
I have this code :
HTML (meaning 4.0)
<div class="temperatura">
<a href="/link/" class="temperatura_localita">
<span style="padding-left:12px;">
Text1
</span>
</a>
<a href="/link/" class="temperatura_dettagli">
<span style="padding-right:70px;">
Text2
</span>
</a>
</div>
CSS (meaning 2)
.temperatura
{
height:34px;
position:relative;
background-color:#FF0000;
}
.temperatura_localita
{
width:50%;
height:34px;
line-height:34px;
float:left;
}
.temperatura_dettagli
{
width:50%;
height:34px;
line-height:34px;
float:left;
text-align:right;
}
and this is what I need :
the container temperatura is linked to /link/;
each a are 50%, and the link got a padding (left or right);
on Firefox/Chrome/IE8/IE9 there arent problem. On IE7, increasing/deacresing (horizontal) the window, the second link got a new line.
Why? And, how can I fix this?
I think this is because of your 50%/50% division. IE7 is pushing the second link to a new line when the pixel count of the div is odd, but maintaining the correct position when it's even. Changing both widths to 49% solves the issue.