473,698 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to display images without gap

16 New Member
Hi!
im unable to make the images displayed beside each other wihtout gaps.

this is my code:
[html]
<table width=600 hight=800>
<tr>
<td>
<a href="Images/bg2.gif" target="_blank" > <img src=Images/pic2.jpg></a>

<a href="Images/bg2.gif" target="_blank" > <img src=Images/pic2.jpg></a>

<a href="Images/bg2.gif" target="_blank" > <img src=Images/pic2.jpg></a>
</td></tr>
</table>
[/html]
but in the output the images have space inbetween. is there a way to put them without any space . thx
Oct 22 '07 #1
10 3389
drhowarddrfine
7,435 Recognized Expert Expert
This happens because images are always inline, just like text, and create 'inline boxes'. So you have to simply change the property of the div to 'display:block' . The only problem is that block level elements occupy the full width of the page so 'float:left' will keep them on the same line.
Oct 23 '07 #2
mayormel
16 New Member
This happens because images are always inline, just like text, and create 'inline boxes'. So you have to simply change the property of the div to 'display:block' . The only problem is that block level elements occupy the full width of the page so 'float:left' will keep them on the same line.

thx for ur help. it works for the top and bottom images, but the image on the horizontal level still have gabs. i don know how to resolve this.
Oct 23 '07 #3
drhowarddrfine
7,435 Recognized Expert Expert
Well, it shouldn't, so post a link or your markup.
Oct 23 '07 #4
JamieHowarth0
533 Recognized Expert Contributor
Hi there,

Try using:
Expand|Select|Wrap|Line Numbers
  1. <table style="border:0px;padding:0px;margin:0px;">
  2.  
Normally works for me. Hope it helps!

Best regards,

medicineworker
Oct 23 '07 #5
mayormel
16 New Member
Hi there,

Try using:
Expand|Select|Wrap|Line Numbers
  1. <table style="border:0px;padding:0px;margin:0px;">
  2.  
Normally works for me. Hope it helps!

Best regards,

medicineworker

thx for all ur help.
Oct 24 '07 #6
drhowarddrfine
7,435 Recognized Expert Expert
Well, there you go, and me spouting off on the other stuff and not paying attention to the fact that the images are in a table. My advice applies to non-table images (not that I would ever lay a page out using tables :) ).
Oct 24 '07 #7
JamieHowarth0
533 Recognized Expert Contributor
Well, there you go, and me spouting off on the other stuff and not paying attention to the fact that the images are in a table. My advice applies to non-table images (not that I would ever lay a page out using tables :) ).
Lol - even the W3C Schools' website uses tables for layout (which technically isn't a conformity to their own WAIA standards, as you're really meant to use <div>'s - but everyone knows that... don't they... like I do on my website *cough* not *cough* 8-)).

medicineworker
Oct 24 '07 #8
drhowarddrfine
7,435 Recognized Expert Expert
W3CSchools is in no way affiliated with the W3C.
Oct 24 '07 #9
JamieHowarth0
533 Recognized Expert Contributor
W3CSchools is in no way affiliated with the W3C.
My apologies, you are correct (W3 Schools is (c) Refsnes Data).
My boo-boo.

med
Oct 24 '07 #10

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

Similar topics

1
3728
by: Mamatha | last post by:
Hi I am developing a small application to capture a record a video file through webcam in C#.NET. In this application i created a JPEG images for every slide,means every JPEG image was treated as a slide then i want to display these images as a slide show. How can i alot time teo each frame? How can i display images one by one without my interaction? Please give me the solution or any releated source code.
5
1680
by: Yoramo | last post by:
Hello is it possible to display images on a ASPX without having them on the disk of the server ? I have images in a DB and whould like to display them on a web page. writing them to disk seems very costly. is it posible to create them in memory and some how give them to the client to display?
4
5613
by: drew197 | last post by:
I am a newbie. I am editing someone elses code to make it compatible with Firefox and Safari. In IE, when you click on the proper link, a block of text is shown in a nice paragraph form. But, in FireFox and Safari it appears as a narrow column of text with only 2-3 words per line. Here is the code: function showAll()
2
2619
by: Evan M. | last post by:
Hello there, I have an interesting problem to takle. I'm creating a website that's going to be run in a local Intranet. The site uses a MasterPage / content page scheme, with the Master page defining a "sidebar" area that contains links to pages, and the content for those pages being displayed in a single content area. The sidebar is divided up into sections, that are show/hidden without postbacks using javascript. Here's an example:
0
9160
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9029
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8897
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8862
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7729
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6521
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4370
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2002
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.