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

Thread: 

How to align 2 divs inline horizontally?

Ads
banner
banner
banner
gamer Offline referral

Posts: 192
Joined: May 2013
Reputation: 4

#1
Member
When I create two divs they show one above the other but I would like to show them or align then inline horizontally how to do that?
marcus_avrelius Offline referral

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

#2
Support Team
The most easy way would be by using CSS align properties!

Code:
align:left;
align:right;

Here is an example:

Code:
<div class="wrapper">
<div style="align:right;">
The content that will be aligned to the right
</div>
<div style="align:left;">
The content that will be aligned to the left
</div>
</div>

You can add class to each div to add width, background color, font size etc.





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