Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > q: putting <img in front of<h3 ?

Reply
Thread Tools

q: putting <img in front of<h3 ?

 
 
catalyst
Guest
Posts: n/a
 
      07-04-2008

<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


 
Reply With Quote
 
 
 
 
Steve Pugh
Guest
Posts: n/a
 
      07-04-2008
On Jul 4, 10:56*am, "catalyst" <(E-Mail Removed)> wrote:
> <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
 
Reply With Quote
 
 
 
 
mynameisnobodyodyssea@googlemail.com
Guest
Posts: n/a
 
      07-05-2008
On Jul 4, 11:10 am, Steve Pugh <(E-Mail Removed)> wrote
> <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. ....
}

 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      07-05-2008
Gus Richter wrote:
> catalyst wrote:
>> <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 ?

>
> 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>

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validators putting space in front of message tshad ASP .Net 0 06-28-2006 05:31 PM
putting a firewall in front of a router atlanta@mailinator.com Computer Support 3 06-08-2005 11:07 PM
Re: putting a firewall in front of a router elaich Computer Support 0 06-08-2005 07:28 PM
Difference between putting code in constructor and putting code in static{} Saurabh Java 6 05-30-2004 02:44 PM
Throw away DVD's putting greed in front of common sense? Aster DVD Video 0 09-02-2003 01:46 PM



Advertisments