As partially change the font size on the first page.

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Fri Mar 27, 2015 10:24 am
Reply with quote
Report this post
Hello,
in the text, "Hello! My name is John " is set to the size of h1. I want to change the text "my name" on a smaller size on h4.

Kamila
User avatar
Senior Boarder

GK User
Fri Mar 27, 2015 10:48 am
Reply with quote
Report this post
Hi,
I guess you want to reduce only font size of H4, yes?
User avatar
Platinum Boarder

GK User
Fri Mar 27, 2015 10:53 am
Reply with quote
Report this post
Because if we talk about header , the whole area is inside one <h1>
<h1 class="gkAnimate active">Hello!<br>My name<br>is John</h1>

What means that by default in CSS you cannot reduce font size for selected element.
but there is one trick...
<h1 class="gkAnimate active">Hello!<br /><span style="font-size: 50%;">My name</span> <br />is John</h1>
User avatar
Platinum Boarder

GK User
Fri Mar 27, 2015 11:18 am
Reply with quote
Report this post
Yes, so please check my previous post

result is even better than default :mrgreen:
User avatar
Platinum Boarder

GK User
Fri Mar 27, 2015 12:35 pm
Reply with quote
Report this post
Thank you, this is a good decision.
User avatar
Senior Boarder

GK User
Fri Mar 27, 2015 6:09 pm
Reply with quote
Report this post
using style="....."
as I show you , you can also use different color. :ugeek:
User avatar
Platinum Boarder

GK User
Sat Mar 28, 2015 4:10 am
Reply with quote
Report this post
Oscar E wrote:Because if we talk about header , the whole area is inside one <h1>
<h1 class="gkAnimate active">Hello!<br>My name<br>is John</h1>

What means that by default in CSS you cannot reduce font size for selected element.
but there is one trick...
<h1 class="gkAnimate active">Hello!<br /><span style="font-size: 50%;">My name</span> <br />is John</h1>

Now that is clever thinking :P thanks for sharing.
User avatar
Gold Boarder

GK User
Sat Mar 28, 2015 6:22 pm
Reply with quote
Report this post
but of course instead style="...bla bla bla..."
CSS geeks users can also use class="..." and define some class in their overide.sss - but this time it's waste of resources.
User avatar
Platinum Boarder


cron