Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

How to add CSS class or style to H1 tag and align inline with div?

Ads
kickass Offline referral

Posts: 103
Joined: Apr 2014
Reputation: 1

#1
Member
I added <h1></h1> to my HTML page but the problem is it juts too big and it shows below the div tag. How to make them show inline horizontally and how to make h1 font smaller and get rid of bold font?
marcus_avrelius Offline referral

Posts: 2,424
Joined: May 2013
Reputation: 102

#2
Support Team
Use CSS table property something like this:

HTML
Code:
<div class="wrapper">
<div>some content here</div>
<h1>Article title</h1>
</div>

CSS
Code:
.wrapper {
    display: table;
}
.wrapper h1 {
    color: #555;
    display: table-cell;
    font-size: 20px;
    font-weight: normal;
}

Here "wrapper h1" class takes care of H1 tag font size, color, and weight(bold)





User(s) browsing this thread: 1 Guest(s)