Re: "Glueing" grapchic with inline text together?



TomB wrote:
>
> Hello,
>
> Let's say I have the following code:
>
> <img src="/path/to/little/decorative/graphic"><a href="/link/path">Link</a>
>
> When I now make my browser window smaller eventually the graphic and the
> link text will break into two lines. I don't want that to happen. How to
> I accomplish that? I tried putting a non-breaking space between the
> image and the link, but perhaps I'm misunderstanding the concept of
> &nbsp; since that doesn't solve anything.

If you are trying to have an image with a link, put the image
inside the link anchor:
<a href=". . ."><img . . . >text</a>

See my home page (per the signature below) for an example. Near
the top of the page, I have images and links for sending me E-mail
and for my PGP keys. Also look at the bottom of my
<URL:http://www.rossde.com/garden/garden_back.html>, where I have
three images and links arranged horizontally.

My preference is to have a small descriptive label below the image
rather than next to it. My text and image would be side-by-side if
I removed the <br> tag between them. I just ran a test. Without
the <br>, the lines of text wrap before the text separates from the
images when I make the browser window narrower. The text does
eventually separate from the images when the window becomes very
narrow. I get a horizontal scrollbar only when the window is so
narrow that the images cannot fit side-by-side without scrolling.

--

David E. Ross
<URL:http://www.rossde.com/>

I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.
.



Relevant Pages

  • Re: how do I publish databse to a web site
    ... Joe, if you'll pardon the expression. ... Access running on the server but displayed in a browser window on the user's ... I would like to have the front end accessed thru a IE web browser and have ...
    (microsoft.public.access.externaldata)
  • Re: Hmmmm, strange ?
    ... Using a combination of 2 different HTML Editors to Write & Edit ... it's also wider than my Browser Window (I normally don't use ... more than about 1238 Pixels (+ the Width of the ScrollBar & the Window ... not everybody happens to use their Web Browser Open at Full ...
    (uk.people.silversurfers)
  • Re: Weird Formatting of posts
    ... My usage pattern for reading IBM-MAIN via web browser is to hold the shift ... web browser window that I ... As the words reflow, the duplicate words ...
    (bit.listserv.ibm-main)
  • Re: Multiple Instances Hosted
    ... web browser window, so that the window can be hosted in a third party app. ... I am supposed to detect key strokes in the browser window. ... How do I correctly setup my hook procedure for multiple browser windows? ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Page shift error when multiple tabs are open in IE7
    ... sure to compress them for next time. ... You have made you page so it precisely fits the ... particular pixel diimensions of the browser window you started in. ... also means it now needs a horizontal scrollbar too, ...
    (comp.infosystems.www.authoring.html)