What in this CSS is causing this difference in font thickness? - css

I have two bits of text. One is in a paragraph element, the other is text for a submit button input.
Why is the font slightly thicker in the button?
Paragraph CSS (taken from Computed Style in Chrome Developer Tools)
box-sizing: border-box;
color: rgb(255, 255, 255);
display: block;
float: left;
font-family: 'Din Text Pro Regular', Arial, Helvetica, sans-serif;
font-size: 16px;
font-style: normal;
font-weight: normal;
height: 24px;
line-height: 24px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 16px;
margin-top: 11.199999809265137px;
width: 119px;
Input CSS (taken from Computed Style in Chrome Developer Tools)
-webkit-appearance: none;
-webkit-border-image: none;
-webkit-box-align: center;
-webkit-box-shadow: rgba(0, 0, 0, 0.65098) 0px 1px 3px 0px, rgba(97, 232, 203, 0.701961) 0px 1px 0px 0px inset;
-webkit-rtl-ordering: logical;
-webkit-user-select: text;
-webkit-writing-mode: horizontal-tb;
background-color: rgb(192, 192, 192);
background-image: -webkit-linear-gradient(top, rgb(75, 208, 179), rgb(38, 174, 144));
border-bottom-color: rgb(255, 255, 255);
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
border-bottom-style: none;
border-bottom-width: 0px;
border-left-color: rgb(255, 255, 255);
border-left-style: none;
border-left-width: 0px;
border-right-color: rgb(255, 255, 255);
border-right-style: none;
border-right-width: 0px;
border-top-color: rgb(255, 255, 255);
border-top-left-radius: 5px;
border-top-right-radius: 5px;
border-top-style: none;
border-top-width: 0px;
box-shadow: rgba(0, 0, 0, 0.65098) 0px 1px 3px 0px, rgba(97, 232, 203, 0.701961) 0px 1px 0px 0px inset;
box-sizing: border-box;
color: rgb(255, 255, 255);
cursor: pointer;
display: inline-block;
font-family: 'Din Text Pro Regular', Arial, Helvetica, sans-serif;
font-size: 16px;
height: 41px;
letter-spacing: normal;
line-height: 16px;
margin-bottom: 0px;
margin-left: 10px;
margin-right: 0px;
margin-top: 0px;
padding-bottom: 10px;
padding-left: 20px;
padding-right: 20px;
padding-top: 11px;
text-align: center;
text-indent: 0px;
text-shadow: rgba(24, 97, 81, 0.34902) 0px 1px 0px;
text-transform: none;
vertical-align: baseline;
white-space: pre;
width: 159px;
word-spacing: 0px;
writing-mode: lr-tb;

I was able to put this at the top of my CSS. It seems to do the trick, at least so far:
button {
-webkit-font-smoothing: antialiased;
}

Apparently, Chrome as some kind of bug, in which it displays the fonts thicker depending on the brightness of its color.
More info here: https://code.google.com/p/chromium/issues/detail?id=163369
Edit: Found more related info and fix
Actually, it is a known bug:
I was able to fix this by following this article.
Kinda late, but it may still be usefull to some.

Related

Trying to style link with class

I have about 100 buttons in my website, all using JavaScript onclick method. I want to replace them all with regular <a href> links for SEO purposes.
I made new class called button_seo with the same CSS as the old buttons. I placed it in the global CSS file, but it will not work and my buttons have no styling.
It does works when I place the CSS in the same file where the button is, but I would like to place it in the global file so I can control many buttons at once.
What might cause this? I don't have any style for the button_seo class anywhere in the files, just in global CSS file.
Here is my code:
.button_seo {
height: 40px ;
background: linear-gradient(to bottom, #4eb5e5 0%, #389ed5 100%); /* W3C */
border: none;
border-radius: 5px;
position: relative;
border-bottom: 4px solid #2b8bc6;
color: #fbfbfb;
font-weight: 600;
font-family: "Open Sans", sans-serif;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
font-size: 15px;
text-align: center;
text-indent: 5px;
box-shadow: 0px 3px 0px 0px rgba(0, 0, 0, 0.2);
cursor: pointer;
width: 190px;
left: 100px;
}
<a class="button_seo" style="left:30px;" href='../censord' title='censord'>Click >></a>
As comment to your answer, is this what you want?
.button_seo {
display: inline-block;
line-height: 40px; /* same as height */
height: 40px ;
background: linear-gradient(to bottom, #4eb5e5 0%, #389ed5 100%); /* W3C */
border: none;
border-radius: 5px;
position: relative;
border-bottom: 4px solid #2b8bc6;
color: #fbfbfb;
font-weight: 600;
font-family: "Open Sans", sans-serif;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
font-size: 15px;
text-align: center;
text-indent: 5px;
box-shadow: 0px 3px 0px 0px rgba(0, 0, 0, 0.2);
cursor: pointer;
width: 190px;
left: 100px;
}
<a class="button_seo" style="left:30px;" href='../censord' title='censord'>Click >></a>
EDIT - I found this SO
i fixed it, can't use height and width parameters for link, that not button after all.

Adding a styled CSS button

I'm trying to add a button that will look something along the lines of the orange "Get It Now" button found here: https://www.wpbeaverbuilder.com/
The guides I found on the topic focus on specific themes which I don't use, and so I'm currently stuck. How can I do that?
My website: https://roi.pub
Thanks.
Here a code snippet for the button. Add the css on the custom style of wordpress, and the class for the button in your menu item.
Don't be freaked about the font, it will get the font that is used in your theme.
.menu-btn {
background-color: #F7951E;
color: #fff;
padding: 6px 18px 3px !important;
border-radius: 5px;
border-bottom: 2px solid #D4821F;
font-weight: 600;
font-size: 14px;
position: relative;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
top: 2px;
text-decoration: none;
transition: background .3s;
}
.menu-btn:hover {
color: #fff;
background-color: #D4821F;
}
<a class="menu-btn" href="#"> Get It Now </a>
EDIT:
Code for you website's menu :
.menu-btn {
line-height: 1;
margin-top: 25px;
background-color: #F7951E;
color: #fff !important;
padding: 10px 18px 7px !important;
border-radius: 5px;
border-bottom: 2px solid #D4821F;
font-weight: 600;
font-size: 14px;
position: relative;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
top: 2px;
text-decoration: none;
transition: background .3s;
}
Try this
https://codepen.io/anon/pen/JMQNZE
button {
border: 0;
background-color: #F7951E;
color: #fff;
padding: 6px 18px 3px;
border-radius: 5px;
border-bottom: 2px solid #D4821F;
font-weight: 600;
font-size: 14px;
text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
top: 2px;
}
button:hover {
color: #fff;
background-color: #db7f0f;
cursor: pointer;
}
You can inspect any element from a page and see it's css attributes.

Horizontal scrollbar not selectable (on Linux?)

I have a Hugo template I am attempting to use. However, certain divs attempt to scroll horizontally, but on Chrome or Firefox on Linux I cannot manipulate the horizontal scroll bar. The horizontally scroll bar is present and looks normal, but I cannot move the slider.
Why is horizontal scrolling not working correctly on some browsers/OSes?
Interestingly, this appears to not be an issue on Chrome or FF when running Mac, which leads me to believe it's some kind of bizarre platform issue.
HTML:
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<article id="ARTICLE_1">
<div id="DIV_2">
<h1 id="H1_3">Getting started <a href="#" id="A_4" title=
"Permanent link">#</a></h1>
<h2 id="H2_5">Installation<a href="#installation" id="A_6" title=
"Permanent link">#</a></h2>
<h3 id="H3_7">Installing Hugo<a href="#installing-hugo" id="A_8" title=
"Permanent link">#</a></h3>
<p id="P_9">Hugo itself is just a single binary without dependencies on
expensive runtimes like Ruby, Python or PHP and without dependencies on any
databases. You just need to download the <a href=
"https://github.com/spf13/hugo/releases" id="A_10">latest version</a>. For
more information read the official <a href=
"http://gohugo.io/overview/installing/" id="A_11">installation
guides</a>.</p>
<p id="P_12">Let’s make sure Hugo is set up as expected. You should see a
similar version number in your terminal:</p>
<pre id="PRE_13"><code class="language-sh hljs bash" id=
"CODE_14">hugo version
<span class="hljs-comment" id=
"SPAN_15"># Hugo Static Site Generator v0.15 BuildDate: 2016-01-03T12:47:47+01:00</span>
</code>
</pre>
<h3 id="H3_16">Installing Material<a href="#installing-material" id="A_17"
title="Permanent link">#</a></h3>
<p id="P_18">Next, assuming you have Hugo up and running the <code id=
"CODE_19">hugo-material-docs</code> theme can be installed with <code id=
"CODE_20">git</code> :</p>
<pre id="PRE_21"><code class="language-sh hljs bash" id=
"CODE_22"><span class="hljs-comment" id=
"SPAN_23"># create a new Hugo website</span>
hugo new site my-awesome-docs
<span class="hljs-comment" id=
"SPAN_24"># move into the themes folder of your website</span>
<span class="hljs-built_in" id="SPAN_25">cd</span> my-awesome-docs/themes/
<span class="hljs-comment" id="SPAN_26"># download the theme</span>
git <span class="hljs-built_in" id=
"SPAN_27">clone</span> git#github.com:digitalcraftsman/hugo-material-docs.git
long line aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
</code>
</pre>
<h2 id="H2_28">Setup<a href="#setup" id="A_29" title=
"Permanent link">#</a></h2>
<p id="P_30">Next, take a look in the <code id="CODE_31">exampleSite</code>
folder at <code id="CODE_32">themes/hugo-material-docs/</code> . This
directory contains an example config file and the content that you are
currently reading. It serves as an example setup for your documentation.</p>
<p id="P_33">Copy at least the <code id="CODE_34">config.toml</code> in the
root directory of your website. Overwrite the existing config file if
necessary.</p>
<p id="P_35">Hugo includes a development server, so you can view your
changes as you go - very handy. Spin it up with the following command:</p>
<pre id="PRE_36"><code class="language-sh hljs bash" id=
"CODE_37">hugo server
</code>
</pre>
<p id="P_38">Now you can go to <a href="http://localhost:1313" id=
"A_39">localhost:1313</a> and the Material theme should be visible. You can
now start writing your documentation, or read on and customize the theme
through some options.</p>
<aside id="ASIDE_40">
© 2017 Released under the MIT license – Documentation built with <a href=
"https://www.gohugo.io" id="A_41">Hugo</a> using the <a href=
"http://github.com/digitalcraftsman/hugo-material-docs" id=
"A_42">Material</a> theme.
</aside>
<footer id="FOOTER_43">
<nav id="NAV_44">
<div id="DIV_45"></div>
<div id="DIV_46">
<a href="http://localhost:1313/adding-content/" id="A_47" title=
"Adding content"><span id="SPAN_48">Next</span></a>
<div id="DIV_49">
<div id="DIV_50">
<div id="DIV_51">
Adding content
</div>
</div>
<div id="DIV_52">
<i id="I_53"></i>
</div>
</div>
</div>
</nav>
</footer>
</div>
</article>
</body>
</html>
CSS:
#DIV_1 {
box-sizing: border-box;
color: rgba(0, 0, 0, 0.870588);
height: 808px;
text-size-adjust: 100%;
width: 699px;
column-rule-color: rgba(0, 0, 0, 0.870588);
perspective-origin: 349.5px 404px;
transform-origin: 349.5px 404px;
border: 0px none rgba(0, 0, 0, 0.870588);
font: normal normal normal normal 14px / 23.8px Ubuntu, Helvetica, Arial, sans-serif;
outline: rgba(0, 0, 0, 0.870588) none 0px;
padding: 128px 24px 96px;
}
/*#DIV_1*/
#H1_2 {
box-sizing: border-box;
color: rgb(232, 78, 64);
height: 95px;
text-size-adjust: 100%;
width: 651px;
column-rule-color: rgb(232, 78, 64);
perspective-origin: 325.5px 47.5px;
transform-origin: 325.5px 47.5px;
border-top: 0px none rgb(232, 78, 64);
border-right: 0px none rgb(232, 78, 64);
border-bottom: 1px solid rgba(0, 0, 0, 0.117647);
border-left: 0px none rgb(232, 78, 64);
font: normal normal normal normal 24px / 32px Ubuntu, Helvetica, Arial, sans-serif;
margin: 0px;
outline: rgb(232, 78, 64) none 0px;
padding: 20px 0px 42px;
}
/*#H1_2*/
#A_3 {
box-sizing: border-box;
color: rgba(0, 0, 0, 0.258824);
display: block;
float: right;
height: 32px;
text-decoration: none;
text-size-adjust: 100%;
width: 9.34375px;
column-rule-color: rgba(0, 0, 0, 0.258824);
perspective-origin: 4.67188px 16px;
transform-origin: 4.67188px 16px;
border: 0px none rgba(0, 0, 0, 0.258824);
font: normal normal normal normal 14px / 32px Ubuntu, Helvetica, Arial, sans-serif;
margin: 0px 0px 0px 20px;
outline: rgba(0, 0, 0, 0.258824) none 0px;
transition: color 0.25s ease 0s;
}
/*#A_3*/
#H2_4, #H2_13 {
box-sizing: border-box;
color: rgb(232, 78, 64);
height: 128px;
text-size-adjust: 100%;
width: 651px;
column-rule-color: rgb(232, 78, 64);
perspective-origin: 325.5px 64px;
transform-origin: 325.5px 64px;
border: 0px none rgb(232, 78, 64);
font: normal normal normal normal 20px / 28px Ubuntu, Helvetica, Arial, sans-serif;
margin: -64px 0px 0px;
outline: rgb(232, 78, 64) none 0px;
padding: 100px 0px 0px;
}
/*#H2_4, #H2_13*/
#A_5, #A_14 {
box-sizing: border-box;
color: rgba(0, 0, 0, 0.258824);
display: block;
float: right;
height: 28px;
text-decoration: none;
text-size-adjust: 100%;
width: 9.34375px;
column-rule-color: rgba(0, 0, 0, 0.258824);
perspective-origin: 4.67188px 14px;
transform-origin: 4.67188px 14px;
border: 0px none rgba(0, 0, 0, 0.258824);
font: normal normal normal normal 14px / 28px Ubuntu, Helvetica, Arial, sans-serif;
margin: 0px 0px 0px 20px;
outline: rgba(0, 0, 0, 0.258824) none 0px;
transition: color 0.25s ease 0s;
}
/*#A_5, #A_14*/
#H3_6 {
box-sizing: border-box;
color: rgba(0, 0, 0, 0.870588);
height: 107px;
text-size-adjust: 100%;
width: 651px;
column-rule-color: rgba(0, 0, 0, 0.870588);
perspective-origin: 325.5px 53.5px;
transform-origin: 325.5px 53.5px;
border: 0px none rgba(0, 0, 0, 0.870588);
font: normal normal bold normal 14px / 23.8px Ubuntu, Helvetica, Arial, sans-serif;
margin: -64px 0px 0px;
outline: rgba(0, 0, 0, 0.870588) none 0px;
padding: 84px 0px 0px;
}
/*#H3_6*/
#A_7 {
box-sizing: border-box;
color: rgba(0, 0, 0, 0.258824);
display: block;
float: right;
height: 23px;
text-decoration: none;
text-size-adjust: 100%;
width: 9.34375px;
column-rule-color: rgba(0, 0, 0, 0.258824);
perspective-origin: 4.67188px 11.5px;
transform-origin: 4.67188px 11.5px;
border: 0px none rgba(0, 0, 0, 0.258824);
font: normal normal normal normal 14px / 23.8px Ubuntu, Helvetica, Arial, sans-serif;
margin: 0px 0px 0px 20px;
outline: rgba(0, 0, 0, 0.258824) none 0px;
transition: color 0.25s ease 0s;
}
/*#A_7*/
#P_8 {
box-sizing: border-box;
color: rgba(0, 0, 0, 0.870588);
height: 46px;
text-size-adjust: 100%;
width: 651px;
column-rule-color: rgba(0, 0, 0, 0.870588);
perspective-origin: 325.5px 23px;
transform-origin: 325.5px 23px;
border: 0px none rgba(0, 0, 0, 0.870588);
font: normal normal normal normal 14px / 23.8px Ubuntu, Helvetica, Arial, sans-serif;
margin: 21px 0px 0px;
outline: rgba(0, 0, 0, 0.870588) none 0px;
}
/*#P_8*/
#CODE_9, #CODE_10 {
box-sizing: border-box;
color: rgb(232, 78, 64);
text-size-adjust: 100%;
white-space: nowrap;
column-rule-color: rgb(232, 78, 64);
background: rgb(238, 238, 238) none repeat scroll 0% 0% / auto padding-box border-box;
border: 0px none rgb(232, 78, 64);
font: normal normal normal normal 14px / 23.8px "Ubuntu Mono", "Courier New", Courier, monospace;
outline: rgb(232, 78, 64) none 0px;
padding: 2px 4px;
}
/*#CODE_9, #CODE_10*/
#PRE_11 {
box-sizing: border-box;
color: rgba(0, 0, 0, 0.870588);
height: 78px;
text-size-adjust: 100%;
width: 699px;
column-rule-color: rgba(0, 0, 0, 0.870588);
perspective-origin: 349.5px 39px;
transform-origin: 349.5px 39px;
background: rgba(0, 0, 0, 0.0470588) none repeat scroll 0% 0% / auto padding-box border-box;
border: 0px none rgba(0, 0, 0, 0.870588);
font: normal normal normal normal 14px / 21px "Ubuntu Mono", "Courier New", Courier, monospace;
margin: 21px -24px 0px;
outline: rgba(0, 0, 0, 0.870588) none 0px;
overflow: auto;
padding: 21px 24px;
}
/*#PRE_11*/
#CODE_12 {
box-sizing: border-box;
color: rgba(0, 0, 0, 0.8);
display: block;
height: 36px;
text-size-adjust: 100%;
white-space: pre;
width: 651px;
column-rule-color: rgba(0, 0, 0, 0.8);
perspective-origin: 325.5px 18px;
transform-origin: 325.5px 18px;
background: rgb(238, 238, 238) none repeat scroll 0% 0% / auto padding-box border-box;
border: 0px none rgba(0, 0, 0, 0.8);
font: normal normal normal normal 14px / 21px "Ubuntu Mono", "Courier New", Courier, monospace;
outline: rgba(0, 0, 0, 0.8) none 0px;
overflow: auto;
}
/*#CODE_12*/
#P_15 {
box-sizing: border-box;
color: rgba(0, 0, 0, 0.870588);
height: 23px;
text-size-adjust: 100%;
width: 651px;
column-rule-color: rgba(0, 0, 0, 0.870588);
perspective-origin: 325.5px 11.5px;
transform-origin: 325.5px 11.5px;
border: 0px none rgba(0, 0, 0, 0.870588);
font: normal normal normal normal 14px / 23.8px Ubuntu, Helvetica, Arial, sans-serif;
margin: 21px 0px 0px;
outline: rgba(0, 0, 0, 0.870588) none 0px;
}
/*#P_15*/
#ASIDE_16 {
box-sizing: border-box;
color: rgba(0, 0, 0, 0.541176);
height: 23px;
text-size-adjust: 100%;
width: 651px;
column-rule-color: rgba(0, 0, 0, 0.541176);
perspective-origin: 325.5px 11.5px;
transform-origin: 325.5px 11.5px;
border: 0px none rgba(0, 0, 0, 0.541176);
font: normal normal normal normal 14px / 23.8px Ubuntu, Helvetica, Arial, sans-serif;
margin: 21px 0px 64px;
outline: rgba(0, 0, 0, 0.541176) none 0px;
}
/*#ASIDE_16*/
#A_17, #A_18 {
box-sizing: border-box;
color: rgb(232, 78, 64);
text-decoration: none;
text-size-adjust: 100%;
column-rule-color: rgb(232, 78, 64);
border-top: 0px none rgb(232, 78, 64);
border-right: 0px none rgb(232, 78, 64);
border-bottom: 1px dotted rgb(232, 78, 64);
border-left: 0px none rgb(232, 78, 64);
font: normal normal normal normal 14px / 23.8px Ubuntu, Helvetica, Arial, sans-serif;
outline: rgb(232, 78, 64) none 0px;
transition: color 0.25s ease 0s;
}
/*#A_17, #A_18*/
#FOOTER_19 {
bottom: 0px;
box-sizing: border-box;
color: rgb(255, 255, 255);
height: 96px;
left: 0px;
position: absolute;
right: 0px;
text-size-adjust: 100%;
top: 867px;
width: 961px;
z-index: 4;
column-rule-color: rgb(255, 255, 255);
perspective-origin: 480.5px 48px;
transform-origin: 480.5px 48px;
background: rgb(232, 78, 64) none repeat scroll 0% 0% / auto padding-box border-box;
border: 0px none rgb(255, 255, 255);
font: normal normal normal normal 14px / 23.8px Ubuntu, Helvetica, Arial, sans-serif;
outline: rgb(255, 255, 255) none 0px;
padding: 0px 8px;
}
/*#FOOTER_19*/
#NAV_20 {
box-sizing: border-box;
color: rgb(255, 255, 255);
height: 96px;
max-width: 1184px;
text-size-adjust: 100%;
width: 945px;
column-rule-color: rgb(255, 255, 255);
perspective-origin: 472.5px 48px;
transform-origin: 472.5px 48px;
border: 0px none rgb(255, 255, 255);
font: normal normal normal normal 14px / 23.8px Ubuntu, Helvetica, Arial, sans-serif;
outline: rgb(255, 255, 255) none 0px;
overflow: hidden;
padding: 8px 0px;
}
/*#NAV_20*/
#DIV_21 {
bottom: 0px;
box-sizing: border-box;
color: rgb(255, 255, 255);
float: left;
height: 80px;
left: 0px;
position: relative;
right: 0px;
text-size-adjust: 100%;
top: 0px;
width: 472.5px;
column-rule-color: rgb(255, 255, 255);
perspective-origin: 236.25px 40px;
transform-origin: 236.25px 40px;
border: 0px none rgb(255, 255, 255);
font: normal normal normal normal 14px / 23.8px Ubuntu, Helvetica, Arial, sans-serif;
outline: rgb(255, 255, 255) none 0px;
}
/*#DIV_21*/
#DIV_22 {
bottom: 0px;
box-sizing: border-box;
color: rgb(255, 255, 255);
float: left;
height: 80px;
left: 0px;
position: relative;
right: 0px;
text-align: right;
text-size-adjust: 100%;
top: 0px;
width: 472.5px;
column-rule-color: rgb(255, 255, 255);
perspective-origin: 236.25px 40px;
transform-origin: 236.25px 40px;
border: 0px none rgb(255, 255, 255);
font: normal normal normal normal 14px / 23.8px Ubuntu, Helvetica, Arial, sans-serif;
outline: rgb(255, 255, 255) none 0px;
}
/*#DIV_22*/
#A_23 {
box-sizing: border-box;
color: rgb(232, 78, 64);
display: block;
height: 80px;
text-align: right;
text-decoration: none;
text-size-adjust: 100%;
width: 472.5px;
column-rule-color: rgb(232, 78, 64);
perspective-origin: 236.25px 40px;
transform-origin: 236.25px 40px;
border: 0px none rgb(232, 78, 64);
font: normal normal normal normal 14px / 23.8px Ubuntu, Helvetica, Arial, sans-serif;
outline: rgb(232, 78, 64) none 0px;
transition: color 0.25s ease 0s;
}
/*#A_23*/
#SPAN_24 {
bottom: 40px;
box-sizing: border-box;
color: rgba(255, 255, 255, 0.701961);
display: block;
height: 20px;
left: 0px;
position: absolute;
right: 0px;
text-align: right;
text-size-adjust: 100%;
top: 20px;
width: 472.5px;
column-rule-color: rgba(255, 255, 255, 0.701961);
perspective-origin: 236.25px 10px;
transform-origin: 236.25px 10px;
border: 0px none rgba(255, 255, 255, 0.701961);
font: normal normal normal normal 15px / 20px Ubuntu, Helvetica, Arial, sans-serif;
outline: rgba(255, 255, 255, 0.701961) none 0px;
padding: 0px 56px;
}
/*#SPAN_24*/
#DIV_25 {
bottom: 4px;
box-sizing: border-box;
color: rgb(232, 78, 64);
display: table;
height: 48px;
left: 0px;
position: absolute;
right: 0.5px;
text-align: right;
text-size-adjust: 100%;
top: 28px;
width: 472px;
column-rule-color: rgb(232, 78, 64);
perspective-origin: 236px 24px;
transform-origin: 236px 24px;
border: 0px none rgb(232, 78, 64);
font: normal normal normal normal 14px / 23.8px Ubuntu, Helvetica, Arial, sans-serif;
outline: rgb(232, 78, 64) none 0px;
}
/*#DIV_25*/
#DIV_26 {
box-sizing: border-box;
color: rgb(232, 78, 64);
display: table;
height: 47px;
table-layout: fixed;
text-align: right;
text-size-adjust: 100%;
width: 424px;
column-rule-color: rgb(232, 78, 64);
perspective-origin: 212px 23.5px;
transform-origin: 212px 23.5px;
border: 0px none rgb(232, 78, 64);
font: normal normal normal normal 14px / 23.8px Ubuntu, Helvetica, Arial, sans-serif;
outline: rgb(232, 78, 64) none 0px;
padding: 0px 8px;
}
/*#DIV_26*/
#DIV_27 {
box-sizing: border-box;
color: rgb(255, 255, 255);
display: table-cell;
height: 47px;
text-align: right;
text-size-adjust: 100%;
text-overflow: ellipsis;
white-space: nowrap;
width: 408px;
column-rule-color: rgb(255, 255, 255);
perspective-origin: 204px 23.5px;
transform-origin: 204px 23.5px;
border: 0px none rgb(255, 255, 255);
font: normal normal normal normal 18px / 23.8px Ubuntu, Helvetica, Arial, sans-serif;
outline: rgb(255, 255, 255) none 0px;
overflow: hidden;
padding: 11px 0px 13px;
}
/*#DIV_27*/
#DIV_28 {
box-sizing: border-box;
color: rgb(255, 255, 255);
display: table-cell;
height: 48px;
text-align: right;
text-size-adjust: 100%;
vertical-align: top;
width: 48px;
column-rule-color: rgb(255, 255, 255);
perspective-origin: 24px 24px;
transform-origin: 24px 24px;
border: 0px none rgb(255, 255, 255);
font: normal normal normal normal 14px / 23.8px Ubuntu, Helvetica, Arial, sans-serif;
outline: rgb(255, 255, 255) none 0px;
}
/*#DIV_28*/
#I_29 {
box-sizing: border-box;
color: rgb(255, 255, 255);
display: inline-block;
height: 40px;
speak: none;
text-align: right;
text-size-adjust: 100%;
width: 40px;
column-rule-color: rgb(255, 255, 255);
perspective-origin: 20px 20px;
transform-origin: 20px 20px;
border: 0px none rgb(255, 255, 255);
border-radius: 100% 100% 100% 100%;
font: normal normal normal normal 24px / 24px Icon;
margin: 4px;
outline: rgb(255, 255, 255) none 0px;
padding: 8px;
transition: background 0.25s ease 0s;
}
/*#I_29*/
#I_29:before {
box-sizing: border-box;
color: rgb(255, 255, 255);
content: '""';
speak: none;
text-align: right;
text-size-adjust: 100%;
column-rule-color: rgb(255, 255, 255);
border: 0px none rgb(255, 255, 255);
font: normal normal normal normal 24px / 24px Icon;
outline: rgb(255, 255, 255) none 0px;
}
/*#I_29:before*/
This is causing your problem.
.article h2 {
padding-top: 100px;
margin-top: -64px;
}
Your H2 tag is overlapping the horizontal bar. So you should balance these numbers, I would do:
.article h2 {
padding-top: 36px;
margin-top: 0px;
}
Seems not affect your design. And respecting the previous proportion.
Make sure to change also your #media areas too.
EDIT: How I've discovered the problem, using the devTools. I realized the size of your h2 was overlapping.

Button text bolder than link text despite CSS

I have a link designed as button and and a real button.
For some reason the text of both have a different font-weight, despite of the same font-weight and font-size. How can I fix this?
The designed pseudo button:
.btn {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
display: inline-block;
outline: 0;
border: 0;
color: #ffffff;
text-decoration: none;
background-color: #ED7004;
font-size: 14px;
font-weight: 100;
padding: 5px 10px 5px 10px;
margin-bottom: 5px;
line-height: normal;
text-align: center;
vertical-align: middle;
cursor: pointer;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 0 1px 0 rgba(15, 15, 15, 0.3);
-moz-box-shadow: 0 1px 0 rgba(15, 15, 15, 0.3);
box-shadow: 0 1px 0 rgba(15, 15, 15, 0.3);
}
The real button:
input[type="button"] {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
display: inline-block;
outline: 0;
border: 0;
color: #ffffff;
text-decoration: none;
background-color: #ED7004;
font-size: 14px;
font-weight: 100;
padding: 5px 10px 5px 10px;
margin-bottom: 5px;
line-height: normal;
text-align: center;
vertical-align: middle;
cursor: pointer;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 0 1px 0 rgba(15, 15, 15, 0.3);
-moz-box-shadow: 0 1px 0 rgba(15, 15, 15, 0.3);
box-shadow: 0 1px 0 rgba(15, 15, 15, 0.3);
}
Thanx!
Are you sure both use the exact same font?
With Arial both look pretty much the same to me:
HTML:
<input type="button" value="Input Button">
<div class="btn">Button Class</div>
CSS:
.btn {
font-family: Arial;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
display: inline-block;
outline: 0;
border: 0;
color: #ffffff;
text-decoration: none;
background-color: #ED7004;
font-size: 14px;
font-weight: 100;
padding: 5px 10px 5px 10px;
margin-bottom: 5px;
line-height: normal;
text-align: center;
vertical-align: middle;
cursor: pointer;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 0 1px 0 rgba(15, 15, 15, 0.3);
-moz-box-shadow: 0 1px 0 rgba(15, 15, 15, 0.3);
box-shadow: 0 1px 0 rgba(15, 15, 15, 0.3);
}
input[type="button"] {
font-family: Arial;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
display: block;
outline: 0;
border: 0;
color: #ffffff;
text-decoration: none;
background-color: #ED7004;
font-size: 14px;
font-weight: 100;
padding: 5px 10px 5px 10px;
margin-bottom: 5px;
line-height: normal;
text-align: center;
vertical-align: middle;
cursor: pointer;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 0 1px 0 rgba(15, 15, 15, 0.3);
-moz-box-shadow: 0 1px 0 rgba(15, 15, 15, 0.3);
box-shadow: 0 1px 0 rgba(15, 15, 15, 0.3);
}
Codepen demo
Though there are still visible differences between browsers. If you want a light font for the button (and the same look in all browsers) it may be better to use an appropriate (web) font instead of font-weight: 100
-webkit-font-smoothing: antialiased;
font-rendering: geometricPrecision;

DIV onmouseover - does not stack over on top of all others DIV?

I would like my appears on top of all others onmouseover !
But it does not !
Here is my CSS style with (display:inline-block) :
.changeMyTitle .two{
display: none;
text-decoration: none;
text-align: justify;
background-image: none;
background-color: yellow;
color: #000000;
font-size: 225%;
font-weight: bold;
font-family: serif;
padding: 5px;
border-radius: 100%;
-webkit-box-shadow: 25px 8px 10px 2px rgba(192, 192, 192, 0.8); /* WebKit */
-moz-box-shadow: 25px 8px 10px 2px rgba(192, 192, 192, 0.8); /* Firefox */
box-shadow: 25px 8px 10px 2px rgba(192, 192, 192, 0.8); /* Standard */
position: absolute;
z-index: 1;
opacity: 0;
}
.changeMyTitle:hover .two{
display: inline-block;
zoom: 1;
*display: inline;
opacity: 1;
}

Resources