HTML - Horizontal Spacing Between Images..
I've been working on a new project and I'm using tables to create a layout, I know it's not a good idea but I don't know CSS enough to use DIV's.
But I have the table set up into 3 columns, and 2 rows. Top right row has images layered on top of each other for navigation... Everything works fine but the problem is there is spacing in between each of the images. They have no code in between or spacing, it is just messed up. If anyone has any idea help would be greatly appreciated. Similar TutorialsI'm new to HTML/XHTML, so thanks for helping me understand the spacing rules that are applying he HTML: Quote: <div id="nav"> <ul> <li><a href="index.html">Main</a></li> <li><a href="resume.html">Resume</a></li> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="contact.html">Contact and Networking</a></li> </ul> </div> CSS: Quote: #nav { height: 37px; text-align: center; background-color: #858585; } #nav ul { margin: 0; } #nav li { display: inline; } #nav a { padding: 9px 12px 9px 12px; line-height: 38px; border-left: 1px solid black; } Between every link in my horizontal navigation menu, there is a space (which I don't want). In order to get rid of this space, I have to change my HTML code to... Quote: <div id="nav"> <ul> <li><a href="index.html">Main</a></li><li><a href="resume.html">Resume</a></li><li><a href="portfolio.html">Portfolio</a></li><li><a href="contact.html">Contact and Networking</a></li> </ul> </div> ...which in turn sacrifices readability. This all seems very counter-intuitive to me, since I was under the impression that I could format my code readably without having to worry about its presentation. I can only guess that my line breaks (textual line breaks, not actual <br /> tags) are being interpreted as white space within my <ul>. If this is the case, my only other option would be to display my <li>s as block elements with zero margins, float them, and then use margins to push them to the middle (which is all WAY uglier than being able to center them with text-align). This is how I understand what's going on. If I am correct, does this mean I'm forced to sacrifice readability for functionality? I have a problem with my banner. the images have gaps between them, so it looks tacky. Here is the Site: http://www.freewebs.com/jaceyanimation/sitetemplate.htm (I don't have any problems with the sidebar) Here is the code i made for it: HTML Code: <a href="http://www.freewebs.com/jaceyanimation/index.htm" target="_blank"><img src="http://www.freewebs.com/jaceyanimation/Part%201.PNG" border="0" alt="Jacey"></a> <img src="http://www.freewebs.com/jaceyanimation/Part%202.PNG" border="0" alt=""><br> <a href="http://www.freewebs.com/jaceyanimation/index.htm" target="_blank"><img src="http://www.freewebs.com/jaceyanimation/Part%203.PNG" border="0" alt="Home"></a> <a href="http://www.freewebs.com/jaceyanimation/about.htm" target="_blank"><img src="http://www.freewebs.com/jaceyanimation/Part%204.PNG" border="0" alt="About"></a> <a href="http://www.freewebs.com/jaceyanimation/product.htm" target="_blank"><img src="http://www.freewebs.com/jaceyanimation/Part%205.PNG" border="0" alt="Products"></a> <a href="http://www.freewebs.com/jaceyanimation/game.htm" target="_blank"><img src="http://www.freewebs.com/jaceyanimation/Part%206.PNG" border="0" alt="Game"></a> <a href="http://www.freewebs.com/jaceyanimation/animation.htm" target="_blank"><img src="http://www.freewebs.com/jaceyanimation/Part%207.PNG" border="0" alt="Animation"></a><br> <img src="http://www.freewebs.com/jaceyanimation/Part%208.PNG" border="0" alt=""> Can anyone suggest what i could do, or even better, fix the code? Hello I have an image in my html page, 'aigned left', and the text is pressed right againt the edge, almost no space at all. Now I have a border on the image, so if I play with "H space" it spaces with the border too, which is a pain. how can I put a space so the text isn't right against the border? If you say CSS, I know very little about css, so would need some guidance. Thank you. Hey guys. I am in the middle of making a new Mod for vbulletin and I ran into a bit of a snag. If you go to www.chosen-wow.com/forumlist.php, you will see at the top that there is a "Raid Progression" table. In that table, you will see quite a few pictures with spaces between all of them. How do I make the space between each image in a row go away? In other words, what code am I missing from the table code below? Code: <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <thead> <tr> <td class="tcat" colspan="2">Chosen Raid Progression</td> </tr> </thead> <tbody> <tr> <td class="alt1" width="50%"> <center><div class="progress_title">Karazhan</div> <img src="progression_mod/kz_1_dead.jpg" width="53" height="71"> <img src="progression_mod/kz_2_dead.jpg" width="48" height="71"> <img src="progression_mod/kz_3_dead.jpg" width="48" height="71"> <img src="progression_mod/kz_4_dead.jpg" width="48" height="71"> <img src="progression_mod/kz_5_dead.jpg" width="47" height="71"> <img src="progression_mod/kz_6_dead.jpg" width="48" height="71"> <img src="progression_mod/kz_7_dead.jpg" width="47" height="71"> <img src="progression_mod/kz_8_dead.jpg" width="47" height="71"> <img src="progression_mod/kz_9_dead.jpg" width="62" height="71"> <div class="progress_title">Serpentshrine Cavern</div> <img src="progression_mod/ssc_1_alive.jpg" width="53" height="71"> <img src="progression_mod/ssc_2_alive.jpg" width="48" height="71"> <img src="progression_mod/ssc_3_alive.jpg" width="48" height="71"> <img src="progression_mod/ssc_4_alive.jpg" width="48" height="71"> <img src="progression_mod/ssc_5_alive.jpg" width="47" height="71"> <img src="progression_mod/ssc_6_alive.jpg" width="48" height="71"> <img src="progression_mod/ssc_7_bkg.jpg" width="47" height="71"> <img src="progression_mod/ssc_8_bkg.jpg" width="47" height="71"> <img src="progression_mod/ssc_9_bkg.jpg" width="62" height="71"> <div class="progress_title">Mount Hyjal</div> <img src="progression_mod/mh_1_alive.jpg" width="53" height="71"> <img src="progression_mod/mh_2_alive.jpg" width="48" height="71"> <img src="progression_mod/mh_3_alive.jpg" width="48" height="71"> <img src="progression_mod/mh_4_alive.jpg" width="48" height="71"> <img src="progression_mod/mh_5_alive.jpg" width="47" height="71"> <img src="progression_mod/mh_6_bkg.jpg" width="48" height="71"> <img src="progression_mod/mh_7_bkg.jpg" width="47" height="71"> <img src="progression_mod/mh_8_bkg.jpg" width="47" height="71"> <img src="progression_mod/mh_9_bkg.jpg" width="62" height="71"> </center> <td class="alt1" width="50%"> <center><div class="progress_title">Outdoor & World</div> <img src="progression_mod/wld_1_dead.jpg" width="53" height="71" border="0"> <img src="progression_mod/wld_2_dead.jpg" width="48" height="71" border="0"> <img src="progression_mod/wld_3_alive.jpg" width="48" height="71"> <img src="progression_mod/wld_4_alive.jpg" width="48" height="71"> <img src="progression_mod/wld_5_alive.jpg" width="47" height="71"> <img src="progression_mod/wld_6_bkg.jpg" width="48" height="71"> <img src="progression_mod/wld_7_bkg.jpg" width="47" height="71"> <img src="progression_mod/wld_8_bkg.jpg" width="47" height="71"> <img src="progression_mod/wld_9_bkg.jpg" width="62" height="71"> <div class="progress_title">Tempest Keep</div> <img src="progression_mod/tk_1_dead.jpg" width="53" height="71"> <img src="progression_mod/tk_2_alive.jpg" width="48" height="71"> <img src="progression_mod/tk_3_alive.jpg" width="48" height="71"> <img src="progression_mod/tk_4_alive.jpg" width="48" height="71"> <img src="progression_mod/tk_5_bkg.jpg" width="47" height="71"> <img src="progression_mod/tk_6_bkg.jpg" width="48" height="71"> <img src="progression_mod/tk_7_bkg.jpg" width="47" height="71"> <img src="progression_mod/tk_8_bkg.jpg" width="47" height="71"> <img src="progression_mod/tk_9_bkg.jpg" width="62" height="71"> <div class="progress_title">Black Temple</div> <img src="progression_mod/bt_1_alive.jpg" width="53" height="71"> <img src="progression_mod/bt_2_alive.jpg" width="48" height="71"> <img src="progression_mod/bt_3_alive.jpg" width="48" height="71"> <img src="progression_mod/bt_4_alive.jpg" width="48" height="71"> <img src="progression_mod/bt_5_alive.jpg" width="47" height="71"> <img src="progression_mod/bt_6_alive.jpg" width="48" height="71"> <img src="progression_mod/bt_7_alive.jpg" width="47" height="71"> <img src="progression_mod/bt_8_alive.jpg" width="47" height="71"> <img src="progression_mod/bt_9_alive.jpg" width="62" height="71"> </center> </td> </tr> </tbody> </table> Thanks in advance. Hello everyone. I have been given to task to create a signature template. I am pretty new to html. I am trying to remove the vertical spacing in between the website link/phone number and job title. I have sat here playing around with it for about an hour without much luck. What can I do? --------------------------------- here is the code i am using --------------------------------- <p> <strong><font color="blue">_______________________________________________</font></strong> </p> <p style="MARGIN-RIGHT: 0px" dir="ltr"> <font color="gray" size="4" face="Arial Narrow"><font color="gray"><strong>Debra Scott</strong></font>   ; <strong><font size="2">Newmarket Chamber of Commerce</font></strong> <br /> <font size="2"><strong><em>President & Ceo & nbsp;   ; <font size="1">"Leading Businesses. Leading Communities"</font></em></strong></font><font size="4"> </font></font> </p> <font color="#808080" size="4" face="Arial Narrow"></font><font color="gray" size="4" face="Arial Narrow"> <font color="#000000" face="Times New Roman"></font><font color="#000000" face="Times New Roman"><a href="http://www.newmarketchamber.ca" target="_blank"><font color="gray" size="1" face="Arial Narrow"><strong><img class="floatLeft" style="WIDTH: 20px; HEIGHT: 19px" border="0" src="http://NewmarketONCOC.weblinkconnect.com/External/WCPages/WCWebContent/WebContentPage.aspx?ContentID=296" width="36" height="34" />Newmarket Chamber Website</strong></font></a><font size="3"><font color="gray" size="1" face="Arial Narrow"><strong> <img class="floatLeft" style="WIDTH: 24px; HEIGHT: 19px" border="0" src="http://NewmarketONCOC.weblinkconnect.com/External/WCPages/WCWebContent/WebContentPage.aspx?ContentID=299" width="36" height="34" />905 898-5900 ex. 223</strong></font></font></font> <br /> <font color="#d5d500" size="3" face="Times New Roman">_______________________________________________</font></font> </p> I'm sorry I can't provide a url because I'm not online yet, but here is my problem. I am trying to post a series of images with text descriptions of each image, but I can't seem to align the images so they are spaced evenly. (Basically like tabs in between the photos) I have tried the following things: <img src="party23.jpg" width="150" height="150" hspace=50>Blowing out candles <img src="party24.jpg" width="150" height="150">The cake<br> what I got was the pictures separated from the text - and the next picture's placement spaced from the end of the 1st picture's text, instead of from the first picture. I have also tried this: <img src="party23.jpg" width="150" height="150">Blowing out candles <center><img src="party24.jpg" width="150" height="150">The cake</center><br> what I got was the first picture & text was fine but the 2nd was centered on a new line instead of to the right of the first picture. Then I tried: <img src="party23.jpg" width="150" height="150">Blowing out candles <img src="party24.jpg" width="150" height="150">The cake<br> I might be able to get this to work...but I would have to count the spaces from the end of each text until the space where the photo needs to go so I know how many  's to insert.. and since all the text captions are different, that would be really time-consuming since there are alot of photos. Anyone able to help me find an easier way?? Any help greatly appreciated!! I've tried and tried and can't figure this one out, probably VERY easy for others. I've got a table with images and I can't figure out how to remove the spacing betwen the table rows. Here is a link http://www.4wheelcustoms.com/new%20template/index.html Notice both sides of the navagation images have horizontal spacing around them. Any help is appreciated. Hi, I am designing my first website by teaching myself HTML using google, etc, so I am very new to designing from scratch (without using Dreamweaver, etc). My webpage is not online yet, so I can't post a link - sorry! First, I am using .png image files which look great in Google Chrome, but when I check my page in IE, the images look horrible - very pixelated. Why is that, and is there a way to fix them? My only thought would be to use a "smoothed out" image such as a .jpg, however that might make the problem even worse. Second, I am using frames and in my main frame I'm using a table with text on the left column and an image on the right column. Again, in Google Chrome it looks great with the text at the very top of the frame/table, but in Firefox, there is tons of space at the top of the table which makes the text too "tall" for the window, and a scroll bar is necessary. I hope I've explained this properly and would greatly appreciate your help - I have many more questions as well! Thanks so much, Kristen Hello Everyone: I am a novice HTML user - I use it to create a Help file (for an MS/Access database), using HTML Help Workshop. My question concerns line spacing, using the following code: <b><u>Server:</u></b> <ul> <li>First List item...</li> </ul> Using this code, there will be a blank line between "Server" and "First List item...". Is it possible to eliminate this line and have the list start in the next line after "Server"? Thanks. . . Tony N. Alright i'm having a little trouble. When I add stuff to the side boxes, they are farther down then i want them to be, here is a pic: I'm wanting to move it up some, but I don't know how, I have been trying for a long time though. Here is the HTML Code: Code: <div class="box2 margin1"> <div class="tail-right"> <div class="corner-right-bottom"> <div class="corner-left-bottom"> <div class="corner-right-top"> <div class="corner-left-top"> <div class="indent"> <h3><span><span>Partners</span></span></h3> <div class="indent2"> <center><a href="http://www.elitepvpers.de"><img src="http://img230.imageshack.us/img230/2364/31421454.png" border="0"></a></center> <center><a href="http://www.4botters.com"><img src="http://img814.imageshack.us/img814/2599/88029646.png" border="0"></a></center> <div id="vent"><div style="font-weight: bold; font-size: 12px; text-align: center;"><a href="ventrilo://94.75.238.76:4696/servername=EQGVent" style="text-decoration: none;"></a></div></div> </div> </div> </div> </div> </div> </div> </div> </div> Here is the CSS: Code: .box2 {background:#bec2c5 url(images/box2-bottom-tail.gif) bottom repeat-x;} .box2 .tail-right {background:url(images/box2-right-tail.gif) right repeat-y;} .box2 .corner-right-bottom {background:url(images/box2-corner-right-bottom.gif) right bottom no-repeat;} .box2 .corner-left-bottom {background:url(images/box2-corner-left-bottom.gif) left bottom no-repeat;} .box2 .corner-right-top {background:url(images/box2-corner-right-top.gif) right top no-repeat;} .box2 .corner-left-top {background:url(images/box2-corner-left-top.gif) left top no-repeat; width:100%;} .box2 .indent {padding:4px 6px 6px 4px;} .box2 .indent2 {padding:15px 12px 0px 6px;} Any help will be greatly appreciated. Thank you. Hey folks... I've searched and searched for an answer for this, but with no luck. Probably because I don't know how to exactly describe my problem. Anyway, the issue is my page is displaying differently in IE and Firefox (surprise!). The spacing between the top image and the body divs are different. I'm not sure if it's an HTML issue or a CSS one. The page in question is: http://www.project-43.com/ The CSS file is he http://project-43.com/images/style.css It displays the way I want it too in Firefox. If you look at it in IE, you'll see the top image looks short, but that is because the spacing between the left menu area and the body on the right is too big. I appreciate any pointers that you might be able to offer. Thanks! Ok so I'm learning along the way by playing around with what my web designer started. I'm having trouble working out what part of the html does the spacing between my text and the input box. Here's what I'm stuck at: You can see how where it says 'click for more fonts' the box isn't in line with the others. Any help would be much appreciated.... I'm starting to go cross-eyed lol. I am having 2 issues with html coding, First off here ****HIT MUTE OR TURN VOLUME DOWN BEFORE CLICKING**** MY tables are too close together and i can not figure out how to space them out. Secondly on the first table (the hockey playoff bracket) I want to center the text but when i try to use the only align=center(or something like that i have it used in the table below) it clears out the next cell, removing the bracket. Can you help me fix these 2 issues please. Thank You tech-chef Hey, How can I get rid of the space in between these 2 tables (see image), I don't know whether it's spacing or padding or something else. I've tried a few things but they didn't work. Any suggestions? I want to remove the space between the top frame and the main frame, but the div on the main frame doesn't start on the top of the frame... http://black1c3.awardspace.com how can i do it?? I've got a scanned in document that has been processed by OCR - Omnipage - and saved as html. The paragraphs often list five or six items. Most of the paragraphs are single space but some are double spaced. In the original all are single spaced. I would like them all to be single spaced. The code seems very complicated with 'spans' and 'divs' and 'box' and 'style' and long lists of parameters repeated frequently. Too frequently I imagine, machine generated stuff, but I'm not an html coder. The point is I couldn't figure out for the life of me what it was that caused one para to be double spaced and another to be single spaced. Here's a sample of the code that causes double spacing (hope its okay to put snippets of code in these posts, moderator? ) <p><span style="font-family: Tahoma,sans-serif; font-style: normal; font-weight: normal; font-size: 15pt; letter-spacing: 0.3pt;">* To be informed of, and involved in, Centre Management and practices;</span></p> <p><span style="font-family: Tahoma,sans-serif; font-style: normal; font-weight: normal; font-size: 15pt; letter-spacing: 0.3pt;">* To have accessibility to information about the Centre through written policies and programs; and </span></p> <p><span style="font-family: Tahoma,sans-serif; font-style: normal; font-weight: normal; font-size: 15pt; letter-spacing: 0.3pt;">* To be provided with support and assistance in the parenting role. </span></p> <p style="margin: 4.8px 0px 9.6px 9.6px; background-color: rgb(255, 255, 255); text-align: left; text-indent: 0px; line-height: normal;"> </p> </div> <div class="Box" style="border: 0pt none rgb(255, 255, 255); background-color: rgb(255, 255, 255); width: 549.65pt; left: 99.15pt; top: 1107px; height: 192px;"> <p What I'm planning to do now is copy the whole section and paste to notepad to get rid of all html and then pick it up again and put it back into html. I've tried NVU, Frontpage and Dreamweaver and I can't find a way in any of them to simply strip out all the crap and - obviously - I can't find a way to strip out this double spacing thing. regards, ab I am a flash developer and our client wants this site to be built using mainly html, I am pretty good with html but not even close to an expert. I have built a site with Flash vertical and horizontal nav bars above and beside my html content. In Firefox and Safari the site looks perfect, however in IE6 & IE7 there is about a 5 pixel gap between my vertical menu bar and the rest of my content. I have tried everything I know to correct this problem... Any Ideas? They would be greatly appreciated.... Site Link http://www.sacreative.com/education Hi all, I'm having a problem with trying to get a table to have a tidy border. I want the border around one td cell to join the image in the cell above it, but because there is a border around the cell the border in the cell below isn't joining with the one above, there is a white gap between the two. This is the relevant code in the html file: <table class="core"> <tbody> <!-- menu --> <tr> <td width="200px"> <table class="menu"> <tbody> <tr> <td><img src="images\menuheading.jpg" alt="Mojo Menu" border="0"></td> </tr> <tr> <td class="menumain"> Link1<br> Link2<br> Link3<br> </td> </tr> </tbody> </table> </td> <!-- main body --> <td valign="top">Test Main</td> </tr> </tbody> </table> This is the code in the css file body { vertical-align: top; font-weight: normal; font-size: 12px; color: #000000; font-style: normal; font-family: Verdana; text-align: left; margin: 0; } table.headerfooter { background-color: #000066; vertical-align: top; text-align: left; border: #000066 0px solid; width: 100%; color: #FFFFFF; font-size: 10px; text-align: center; padding: 10px; } table.core { vertical-align: top; text-align: left; border: #000000 0px solid; background-color: #FFFFFF; width: 100%; padding: 10px; font-size: 12px; } table.menu { vertical-align: top; text-align: left; background-color: #FFFFFF; width: 100%; margin: 0px; padding: 0px; } td.menumain{ border-left: #000066 1px solid; padding-left: 10px; padding-right: 10px; padding-bottom: 10px; border-right: #000066 1px solid; border-bottom: #000066 1px solid; margin: 0px; padding-top: 0px; } td.headerfooter-left { text-align: left; } td.headerfooter-right { font-size: 10px; text-align: right; } p.menubody{ color: #FFFFFF; padding: 4px; border-left: #000066 1px solid; border-right: #000066 1px solid; } Any help would be appreciated as I'm stumped! Alright, I have a DIV with this as the background image: I put two textboxes over them, the first one is aligned ok but the second one is too high. How do I space them out? When I try br it goes down way too far. Here is what it looks like right now: Should I use a table? more DIVs? Or, is there a css code I could use to bring it down? |