473,480 Members | 1,587 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How do I get my images to line up horizontally

3 New Member
I'm having trouble getting my images to line up horizontally. I have 3 images that are lined up on top of each other instead of horizontally. They are the Motorcycle, ATV and Snowmobile.

Here is the code that I'm using:

<style type="text/css">
.picture { background-color: #F9F9F9;
border: 1px solid #CCCCCC; padding: 3px;
font: 11px/1.4em Arial, sans-serif; }
.picture img { border: 1px solid #CCCCCC;
vertical-align:middle; margin-bottom: 3px; }
.right { margin: 0.5em 0pt 0.5em 0.8em; float:right; }
.left { margin: 0.5em 0.8em 0.5em 0; float:left; }
</style>



And here is the image code:


<p>
<div class="picture left" style="width:240px;"> <img

src="http://performancetrends.com/Definitions/Images/motorcyclenitrous.jp

g" width="240" height="240" alt="Nitrous Oxide Kit on a Motorcycle" />

<br /><center>Nitrous Oxide Kit installed on a Motorcycle - Image

courtesy of <a href="http://www.dynotunenitrous.com">Dyno

Tune</a></center> </div>

<div class="picture middle" style="width:240px;"> <img

src="http://performancetrends.com/Definitions/Images/QuadNitrous.jpg"

width="240" height="240" alt="Nitrous Oxide Kit on ATV" /> <br

/><center>Nitrous Oxide Kit installed on an ATV - Image courtesy of <a

href="http://www.startingline.com">The Starting Line Speed &

Custom</a></center> </div>

<div class="picture right" style="width:240px;"> <img

src="http://performancetrends.com/Definitions/Images/SnowmobileNitrous.jp

g" width="240" height="240" alt="Nitrous Oxide Kit on Snowmobile" /> <br

/><center>Nitrous Oxide Kit installed on a Snowmobile - Image courtesy of

<a href="http://www.csracingcanada.com/">CS Racing</a></center></div></p>


If you need more info here is the link to the page:

http://performancetrends.com/Definitions/Nitrous-Oxide.htm
May 12 '10 #1
4 3806
drhowarddrfine
7,435 Recognized Expert Expert
You divs with the classes "picture middle" and right, add to the CSS 'float:left' but that will also bring up the next section on the right side.

Technical term: "Holy crap!" What software did you use to create this? It's the worst I've ever seen!

I'll look at fixing the right side if you need help.
May 12 '10 #2
JohnD1969
3 New Member
I'm using notepad to modify the code. I found the code on the web and am now trying to modify it to do what I want. It worked find until I wanted the images to line up horizontally.

I'm pretty good with HTML but have no idea how to modify CSS. I can insert CSS into pages but if the code needs to be modified, I'm screwed.
May 13 '10 #3
drhowarddrfine
7,435 Recognized Expert Expert
Most of it was made with some Microsoft product, probably FrontPage. The HTML is horrible; a serious case of 'divitis' where everything is wrapped in multiple div elements. I'd bet 50% of the HTML could be eliminated if rewritten.
May 13 '10 #4
JohnD1969
3 New Member
OK, now I understand what you are getting at. Yes the original site was made with Front Page (it's a big problem). The owner doesn't want to get a new program because he doesn't want to learn something new.

It sounds like this would be more work than I want to put in. Maybe I will just leave out the images that are giving me a problem.
May 13 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
1975
by: Fred | last post by:
I've written a number of "image gallery" pages before, but I'm trying to do something a little different. All the images are rectangular (these are just pictures from my camera), and the...
5
14115
by: The Plankmeister | last post by:
Ello... Is there a way to recreate the "text-align : justify" behaviour with images? (add to wish list: "image-align : justify") I have a gallery page and would like all the images to properly...
13
6087
by: DM | last post by:
If I put three images next to each other (each within an anchor tag) they all line up horizontally as expected with no space between them. I.e., they're sitting flush up against each other. ...
3
4643
by: Lyn | last post by:
I need some guidance for a technique that will allow me to accomplish the following... I have a table in which each record contains a photograph. I would like to display in a form a thumbnail...
8
2420
by: Kentor | last post by:
Hello, I have users that submit images to my website. By default I choose to make the width bigger than the height because usually pictures are taken horizontally... But in some cases people take...
1
9238
by: lennyc | last post by:
I would like to make a simple auto scroll of images with little user interactioin. It would be images moving horizontally in a continuous loop that stops on mouse over and starts up again on mouse...
16
3548
by: Stan The Man | last post by:
I'm a CSS novice trying unsuccessfully to make three thumbnail images display horizontally instead of vertically. I suspect I'm missing something really stupid but I'll take the flak if someone...
2
1737
by: garandhero | last post by:
hey there, I am seeking some help in relation to centering multiple images with inline content, I have read the thread (http://bytes.com/forum/thread99970.html) and I tried the method described on...
4
3473
by: manu1001 | last post by:
the trouble is the elements are defined in different places in the html file. something like this. <input id="a"...... /> <input id="b"...... /> <input id="c"...... /> <input id="d".........
1
2099
by: pxlcreations | last post by:
This is confusing me like crazy. I am making a webapp for the iPad but I can't seem to figure out how to keep my divs in a line, then have overflow-x kick in once the divs have hit the edge of the...
0
7045
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,...
1
6741
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5341
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4782
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
2995
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2985
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
182
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.