You are here: Re: css and positioning images repeating « HTML « IT news, forums, messages
Re: css and positioning images repeating

Posted by Jonathan N. Little on 11/17/71 11:43

Peter wrote:
> Hi, apologies if this is not the correct group. I'm new to this and
> alt.html seemed the most active relevant group that I looked at.
>
>
> Here is my problem. I have a single line in a browser window and I
> would like to display at least two images next to each other. The first
> image "1.bmp" contains a graphic. The second image "2.bmp" is just the
> background of "1.bmp" that I would like to carry on to the right
> margin. The second image "2.bmp" is the same height as "1.bmp" but it
> is very narrow. So in the browser the images would be displayed
> "122222222222222222" with "2", which is "2.bmp", repeating to the right
> hand margin.
>

First of all Peter do not use BMP format for images on the web (BMP is
for Windows format fro use on your own hard drive not the Web) Use JPG,
GIF and maybe PNG.

The background is easy

<style type="text/css" media="screen">
body {
background: white url(MyBackground.jpg) repeat-x;
}
</style>

Then all you have to to is have your featured image in an image element

<body>
<img src="MyFeaturedImage.jpg" alt="The picture">
...
rest of your page...




--
Take care,

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация