I have two divs and I you like them to show one next to other horizontally I mean one on the left and the other on the right?
Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.
How to show 2 divs inline?
Wrap them in a div then use CSS float property.
HTML:
CSS:
HTML:
Code:
<div>
<div class="left">some content</div>
<div class="right">some content</div>
</div>
CSS:
Code:
.left {
float: left;
}
.right {
float: right;
}
Better to use CSS inline-block property.
Code:
<div class"wrapper">
<div>1</div>
<div>2</div>
</div>
Code:
.wrapper div {
display: inline-block;
vertical-align: middle;
}
Thanks Marcus your solution works better +1
Similar Topics:
- My Published Posts does not show on Google
- What is inline CSS style?
- Show Google+ posts in search results get them indexed?
- How to get show my articles on Google news?
- css class or ID vs inline css style?
- My Website Structure not show in Google
- Inline CSS SEO?
- Inline vs Class and ID CSS SEO?
- How to align 2 divs inline horizontally?
- Why PayPal payments show less money than the customer pays?
User(s) browsing this thread: 1 Guest(s)