Jump to content

cant wrap <h1> between 2 iamges


Alfraganus

Recommended Posts

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

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.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...