Alfraganus Posted August 19, 2015 Share Posted August 19, 2015 I cant locate my text between 2 images. it must be <img> <h1>dildora<h1> <img> as location. but first photo is locating next to text, but next photo is locating right below the text. any solution? css style #sidebar { width: 300px; height: 50px; float: left; } ----html---- <div id="sidebar"> <img align="left" src="images/02.gif" width="90" height="60"> <h1 align="left">Dildora</h1> <img align="left" src="images/03.gif" width="90" height="60"> Link to comment Share on other sites More sharing options...
Ingolme Posted August 19, 2015 Share Posted August 19, 2015 The <h1> is a block element, if you want it to go between the images, set its display to inline. The align attribute is only for the <img> element and it's deprecated. If you want something that works on all elements, use CSS float. 1 Link to comment Share on other sites More sharing options...
Alfraganus Posted August 19, 2015 Author Share Posted August 19, 2015 that worked well, thanks a loot mr Ingolme Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now