q: putting <img in front of<h3 ?

C

catalyst

<img src="slike/img012.jpg" width="35" height="30" /> <h3
style="line-height: 1px;" >Aktualno </h3>

It would need to show in the same row, but with this above coding the
"Aktualno" title goes bellow the image...
I tried to put it in the same row with the align="absmiddle" but without
succed, anyone has a clue ?

Thnks
catalyst
 
S

Steve Pugh

<img src="slike/img012.jpg" width="35" height="30" /> <h3
style="line-height: 1px;" >Aktualno </h3>

It would need to show in the same row, but with this above coding the
"Aktualno" title goes bellow the image...
I tried to put it in the same row with the align="absmiddle" but without
succed, anyone has a clue ?

Thnks
catalyst

<h3><img src="slike/img012.jpg" width="35" height="30" alt=""/>
Aktualno</h3>

Steve
 
M

mynameisnobodyodyssea

<h3><img src="slike/img012.jpg" width="35" height="30" alt=""/>
Aktualno</h3>

Try also stylesheets with background-image,
for example

<h3 class="myclass">some text here</h3>

and the style code for .myclass something like

..myclass {
background-image: url("imageurl-here");
background-repeat: no-repeat;
.... more styling for things like positioning,
.... width, height, etc. ....
}
 
J

Jonathan N. Little

Gus said:
IMG is an inline element. (An inline element is set on the same line.)
H3 is a block element. (A block element is set on a new line.)

Restructure as Steve showed or make H3 display as inline with:
display:inline;

However, IMG is an inline element and should be inside a block element
to begin with, for for the latter both the IMG and H3 would have to be
both within a block element, i.e., DIV

<div>
<img ... >
</h3> ... </h3>
</div>

so I would say the former would be a simpler solution

<h3><img ... > ... </h3>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top