space between text and underline [duplicate] - html

This question already has answers here:
How to increase the gap between text and underlining in CSS
(18 answers)
Closed 8 years ago.
i am using text-decoration:underline; but text and underline are touching each other.can i increase space between text and underline?
this one. i want to make space between text and underline.

Either use a different font or use a border-bottom instead so that you can control the space with padding-bottom.

I had same issue then i used :
.underline_text {
border-bottom: solid 2px #000000;
display: inline;
padding-bottom: 3px;
}

Related

Text Strike Line Color Styling [duplicate]

This question already has answers here:
CSS strikethrough different color from text?
(15 answers)
Closed 2 years ago.
How can I change the color of the the strike-through line?
If I give the strike tag a class and then use CSS to change the color, it also changes the text color. I just want to change the color of the line and not the text.
h1 {
color: #4287f5;
}
.strike {
color: #eb1515;
}
<h1><s class="strike">£1000</s></h1>
You can use text-decoration-color, although browser support is spotty
s {
color: #4287f5;
text-decoration-color: #eb1515;
}
<s>Text</s>

dotted outline coming for <button> tag in firefox [duplicate]

This question already has answers here:
How to remove Firefox's dotted outline on BUTTONS as well as links?
(25 answers)
Closed 6 years ago.
On focusing of the <button> tag, I'm unable to remove dotted border around its text.
I tried
border:0, outline: 0
properties. These properties only remove border and outline from <button> but border around text comes on focusing of button.
Here is my fiddle: https://jsfiddle.net/souviksarkar86/4shqvaq8/
This might be what you are looking for:
button::-moz-focus-inner {
border: 0;
}

CSS border appears on click [duplicate]

This question already has answers here:
How can I remove the outline around hyperlinks images?
(18 answers)
Closed 8 years ago.
I have this simple logout button on the right (blue coloured) button and whenever I press the logout button, that border appears
I have tried the following CSS styles:
a:active
{
border-style: none;
border: 0px;
}
and these have been tried on all <a> tag possibilities like hover, active..
Any idea what might be the cause?
this is the Jsfiddle link
http://jsfiddle.net/v1x29f9h/
It's not a border, it's the outline.
#logoutButton {
outline: none;
}
Demo http://jsfiddle.net/v1x29f9h/1/
It is outline: none;. The border would follow the border-radius path.

How to add padding when h1 title broken into second line [duplicate]

This question already has answers here:
Same padding at start and end of each line
(2 answers)
Add padding at the beginning and end of each line of text
(8 answers)
Closed 8 years ago.
I have a div which width is 46%. There is a h1 tag. The text of h1 tag is broken when text is longer. but i want to use same left padding for the second line.
I attached an image and css for better understanding. Is there any solution.
Here is Html
<div class="header-tite">
<h1>An Epidemic 37 Years in the Making</h1>
</div>
Here is the CSS
.header-tite{
width:45%;
float:left;
position:absolute;
left:95px;
bottom:42px;
z-index:1;
}
.header-tite h1{
font-family: 'gotham_bookregular';
font-size:55px;
font-weight:normal;
color:#191919;
line-height:68px;
padding:0px 10px 0px 10px;
background:#FFFFFF;
display:inline;
opacity:0.85;
}
Here is output
I want same gap before Y.
Do not use display: inline on block elements if you need to archive this. If you really have to, you might need to use a span tag inside your h1 tag to style the extra text separately. I wouldn't suggest you mind the gap, especially if you plan this text to be dynamic, but if this text is in your full control then you can use the span tag for additional styling, have a look here http://jsfiddle.net/Wandile/5wy9o5zs/2/ hope this helps.

A href remove all styling [duplicate]

This question already has answers here:
How to remove dotted border around active hyperlinks in IE8 with CSS
(12 answers)
Closed 8 years ago.
I have a link with an <IMG> inside, which directs to a target=_blank, now what I need to do is remove the purple border that comes round the image after I click the link..
I used text-decoration: none; but it still appears ... any ideas? I didn't post the code as none is actually in place except
#portheader a {
text-decoration: none;
border: none;
}
<div id="portheader">
</div>
try adding this to your css
outline: 0;
Give border:none for the image in css
For the Old browsers, use border="0" in the img tag itself.