473,387 Members | 1,942 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.

Image Aligning XHTML 1.0 Strict

kestrel
1,071 Expert 1GB
I have a problem, im trying to make my mebsite, XHTML 1.0 strict, and im going great, but i need my images to be aligned, touching together.

with regular html, i can just put
Expand|Select|Wrap|Line Numbers
  1. <img src="index.html" alt="Home" width="70" height="30">
but since im using XHTML 1.0 Strict i have to end img tags with <img />
so when i make it
Expand|Select|Wrap|Line Numbers
  1. <img src="index.html" alt="Home" width="70" height="30" />
the images now have a space inbetween each other.

how do i correct this?


note:
im going to be using external css, and im going to format each image with external css, and im going to just put class="menu" in each image instead of all those html atributes.
is there a css 'cure' for this problem?

--
Devin
Aug 10 '06 #1
2 2397
kestrel
1,071 Expert 1GB
also, i cant get rid of the link borders, idk why.
i want to use external css
how?
Aug 10 '06 #2
Banfa
9,065 Expert Mod 8TB
The space is not to do with the /> tag ending, it is more likely that you have your images like this

[html]
<img src="index.html" alt="Home" width="70" height="30" />
<img src="index.html" alt="Home" width="70" height="30" />
[/html]and the space appears because you have whitespace between the images, a new line.

You can remove the border on link images with this CSS

[html]
a img {
border: none;
}
[/html]
Aug 10 '06 #3

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

Similar topics

4
by: Kenny | last post by:
I have been trying to write a script that will increase the size of and image when you mouse over it, and decrease it to original size, when you mouse out. After a couple of attempts, this is what...
22
by: fleemo17 | last post by:
I'm just beginning to get into XHTML, so my experience is rather limited. I've created a document with a doctype of XHTML 1.0 Strict. When checking my syntax, I get the following error message: ...
10
by: Carolyn Marenger | last post by:
I think this is an easy one, but I have not been able to find it anywhere. In HTML, I used <center><img src="whatever.gif></center> to horizontally center a graphic on a page. What is the CSS...
7
by: Scott Teglasi | last post by:
Hi all, I was curious as to how others whom have dealt with this problem have handled it. The problem is that I have a site design of a fixed width and height and want to center that content...
11
by: Tomek Toczyski | last post by:
What is the best way to attach a caption to an image in xhtml? I can attach a caption to a table by a "<caption>" tag but I would like to do sth similar to an image. How to do it in a natural...
17
by: santel_helvis | last post by:
Hi All, Could anyone tell me how to rotate the image in javascript. Which concepts I should concentrate to rotate the image
11
by: Chris Beall | last post by:
See http://pages.prodigy.net/chris_beall/Demo/photo%20block%20experiments.html I've ended up with what seems like a rather complex structure for what I thought would be a somewhat simple...
9
by: Cartoper | last post by:
I want to move the image for a link from the HTML to the CSS, but cannot figure out how to do it. Here is the old HTML: <a href="somewhere.html"><img src="anImage.gif"/></a> The image is 18x48
6
by: Janwillem Borleffs | last post by:
Tuxedo schreef: You can check the Image.complete property; example: img = new Image(100,100); interval = setInterval('checkcomplete()', 100); img.src = 'someimg'; function checkcomplete()...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.