Issue
How to center on the same "line" two div blocks?
First div:
<div id=bloc1><?php echo " version ".$version." Copyright © All Rights Reserved."; ?></div>
Second div:
<div id=bloc2><img src="..."></div>
Solution
#block_container {
text-align: center;
}
#bloc1,
#bloc2 {
display: inline;
}
<div id="block_container">
<div id="bloc1">Version 1.0.2 Copyright © All Rights Reserved.</div>
<div id="bloc2"><img src="..."></div>
</div>
Also, you shouldn't put raw content into <div>
's, use an appropriate tag such as <p>
or <span>
.
Edit: Here is a jsFiddle demo.
Answered By - MrCode
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.