Removing unwanted space between images
source link: https://www.codesd.com/item/removing-unwanted-space-between-images.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Removing unwanted space between images
My problem is in my navigation bar, which can be found here: http://grupocoral.netai.net/
There is a space between those images and i want to remove it. How can I do it?
Javascript Code:
function swap(element, image) {
element.src = image;
}
And the html code:
<div id="navbar"><a href="index.php"><img src="images/homeover.png"></a>
<a href="membros.php"><img src="images/membros.png" onmouseover="swap(this, 'images/membrosover.png');" onmouseout="swap(this, 'images/membros.png');"></a>
<a href="canticos.php"><img src="images/canticos.png" onmouseover="swap(this, 'images/canticosover.png');" onmouseout="swap(this, 'images/canticos.png');"></a>
<a href="celeb.php"><img src="images/celebracoes.png" onmouseover="swap(this, 'images/celebracoesover.png');" onmouseout="swap(this, 'images/celebracoes.png');"></a>
<a href="contactos.php"><img src="images/contactos.png" onmouseover="swap(this, 'images/contactosover.png');" onmouseout="swap(this, 'images/contactos.png');"></a>
</div>
Just in case, navbar CSS code:
#navbar{
width: 1280px;
margin: 0 auto;
height: 40px;
horizontal-align: center;
padding:inherit;
}
By the way, do you know any other way of making a menu like that without JS?
Thanks, langel
It's due to the white space in your code. Remove the white space between your links and that should clear it up.
In other words, change your HTML block of navigation to:
<div id="navbar"><a href="index.php"><img src="images/homeover.png"></a><a href="membros.php"><img src="images/membros.png" onmouseover="swap(this, 'images/membrosover.png');" onmouseout="swap(this, 'images/membros.png');"></a><a href="canticos.php"><img src="images/canticos.png" onmouseover="swap(this, 'images/canticosover.png');" onmouseout="swap(this, 'images/canticos.png');"></a><a href="celeb.php"><img src="images/celebracoes.png" onmouseover="swap(this, 'images/celebracoesover.png');" onmouseout="swap(this, 'images/celebracoes.png');"></a><a href="contactos.php"><img src="images/contactos.png" onmouseover="swap(this, 'images/contactosover.png');" onmouseout="swap(this, 'images/contactos.png');"></a> </div>
Recommend
-
9
Creating mosaics, clipping and removing overlapping satellite imagesPosted on April 2, 2021 · Tagged with gis, python,...
-
3
This AI Removes Unwanted Objects From Your Images!January 15th 2022 new story7This task of removing p...
-
4
Shutterstock Is Removing AI-Generated ImagesAI artists are using stock photo sites to monetize images made with tools like Midjourney, but Shutterstock seems to be removing them.by
-
6
Clean up and remove unwanted objects, background from images
-
7
Almost half of teens are sent unwanted sexual images onlineRobbie Meredith - BBC News NI Education CorrespondentSat, October 15, 2022, 3:12 PM·3 min read
-
2
Removing the camera overlay icon on images in Microsoft Edge Friday, November 4th, 2022 at 11:41 am
-
4
Cleanup image and picture by removing unwanted objects free
-
4
Meta backs new tool for removing sexual images of minors posted online / ‘Take It Down’ makes it easier for children and young adults to remove exploitative and sexualized content from participating platforms.
-
6
...
-
9
Live Objects All The Way Down: Removing the Barriers between Applications and Virtual Machines Javier E. Pimás1...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK