473,387 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Horizontal row of images...

cjl
Hey all:

Silly question.

I have four images (all the same size) that I am using as buttons,
and would like to align them in a horizontal row, contained in a div. I
can't seem to figure out the css or html to do this.

Help?

-CJL

Jul 24 '05 #1
5 29606
"cjl" wrote:
Hey all:

Silly question.

I have four images (all the same size) that I am using as buttons,
and would like to align them in a horizontal row, contained in a div. I
can't seem to figure out the css or html to do this.


<DIV> <IMG> <IMG> <IMG> <IMG> </DIV>?

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 24 '05 #2
cjl
That's what I thought, and tried, but all the images end up on top of
each other.

-cjl

Philip Ronan wrote:
"cjl" wrote:
Hey all:

Silly question.

I have four images (all the same size) that I am using as buttons,
and would like to align them in a horizontal row, contained in a div. I
can't seem to figure out the css or html to do this.


<DIV> <IMG> <IMG> <IMG> <IMG> </DIV>?

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/


Jul 24 '05 #3
In article <BE********************@invalid.invalid>, Philip Ronan writes:
"cjl" wrote:

I have four images (all the same size) that I am using as buttons,
and would like to align them in a horizontal row, contained in a div. I
can't seem to figure out the css or html to do this.


<DIV> <IMG> <IMG> <IMG> <IMG> </DIV>?


That seems relatively meaning-free. From the OP's question, it seems to
me that his/her content is really a list, making something like this:
<ul class="Buttons">
<li><img1></li>
<li><img2></li>
<li><img3></li>
<li><img4></li>
</ul>
the more appropriate markup. This would then be styled

UL.Buttons LI {display: inline;}

to give the desired effect.

--
Michael F. Stemper
#include <Standard_Disclaimer>
Always use apostrophe's and "quotation marks" properly.

Jul 24 '05 #4
cjl wrote:

Please do NOT top post:
http://www.allmyfaqs.com/faq.pl?How_to_post
http://www.faqs.org/rfcs/rfc1855.html
That's what I thought, and tried, but all the images end up on top of
each other.


With the given markup (which I've snipped as I'm not prepared to repair your
backwards quoting), the most likely reasons for that would be:

(a) You have somehow constrained the width
(b) The images are too wide to sit next to each other in the viewport
(c) You have used CSS to make the images display like blocks

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 24 '05 #5
On 20 Jun 2005 10:02:20 -0700, "cjl" <cj****@gmail.com> wrote:
That's what I thought, and tried, but all the images end up on top of
each other.


Then post a link to your page, so that we can see too.

If you want to control the "column width" allocated for each image, then
consider using a table. Yes, a <table>

Jul 24 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: jn | last post by:
I'm working with images from a Kodak 2MP camera. It looks like the function will only create a resource if I give it horiznotal pictures from this camera....if I give it vertical (height larger...
1
by: RugbyTravis | last post by:
I want to have a list that is horizontal and each <li> has different images. I also want them to change on hover. I want the words to be below the images as well. Anyone of you styles gurus have...
0
by: Dave | last post by:
Hi, I currently have the following in order to have a little bit of horizontal spacing separation between the bullet images and the text in the list (and I'm happy with the vertical separation...
21
by: Dan V. | last post by:
I have tried a number of things including preloading, but the background image (water tile in header) in IE 6 will not display where other browsers will....
7
by: J-T | last post by:
My website is fine when it is viewed in 1280 by 1024 pixel ,but in smaller resulotions there is a horizontal scrollbar down the page.How can I set it to be viewed the same for all resulotions? ...
2
by: Matt | last post by:
I can not get the horizontal gridlines to show up on a Gridview. I have changed the selection to both and horizontal with no sign of them. Also, when I set the Gridlines property to Vertical or...
3
by: lolo | last post by:
hello. happy new year. I'm trying to build a website for my wife and she is adament on having a horizontal thumbnail scrolling div. great. I have a good vertical scrolling thing, but can't...
2
by: dartanian | last post by:
I have a fluid horizontal navbar on my website which is formatted using floats and percentage widths to make it fluid. This looks great in WinXP Firefox, Opera, and even IE6. Safari and IE7 render...
12
by: ryrocks | last post by:
Hello everyone! Im having a little trouble with my horizontal scrolling set of video thumbnails. I've got 6 video thumbnails that the user scrolls through horizontally, I've got this working...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.