HTML - How Eliminate Spacing And Padding From Table
Hi,
I have a fine gray line around the logo. This is not the border of the table it’s the gray bgcolor. I and other HTMLers try to find the reason of this bug but failed. Can you help? You see the style.css and try to find the reason (please do not give vague answers, please look in the code and in the css) tnx Similar Tutorialshttp://dampheat.com/store.html i cant recall the html to make the spacing to the left and atop that graphic go away. Here is an image depicting the trouble I'm having: I want to make a table, consisting of many cells. These cells would be fixed, and *very different* in sizes. It's easy to make a no-space table when all the images are exactly the same size, but when you have images with a variety of sizes, the table doesn't fit perfectly. Basically I want to create a collage of images with overlay text on each image. My idea was that I could create a table, and each cell (td) would have a background which is the image. Then I could just type in that cell, so the text would be over the image. Then I'd do this for every one of my images, and a collage would be formed. The problem is, the table makes large white spaces wherever the image sizes don't match! How do I get rid of these spaces, or is there an entirely different code/approach I should be using? Thanks! Here is my current code: HTML Code: <html> <head> <style type="text/css"> table.nospace { padding: 0; margin: 0; border-collapse: collapse; } table.nospace tr { padding: 0; margin: 0; } table.nospace td { padding: 0; margin: 0; } </style> </head> <body> <TABLE class="nospace" width="2040px" height="2000px" cellspacing="0px" cellpadding="0px"> <TR> <td valign="top"> <table><tr> <TD WIDTH="800px" HEIGHT="800px" BACKGROUND="image.jpg" VALIGN="bottom"> <h1><FONT COLOR=#ffffff>text</FONT></h1> </TD></tr></table> </td> <td valign="top"> <table><tr> <TD WIDTH="700" HEIGHT="497" BACKGROUND="image" VALIGN="bottom"> <h1><FONT COLOR=#ffffff>Text</FONT></h1> </TD></tr></table> </td> <td valign="top"> <table><tr> <TD WIDTH="700" HEIGHT="467" BACKGROUND="image.jpg" VALIGN="bottom"> <h1><FONT COLOR=#ffffff>Text</FONT></h1> </TD></tr></table> </td> </TR> </TABLE> </body> </html> there is a problem can go through the URL below and open it in IE and any other browser like mozilla or chrome etc the mid section is not working properly it seems in IE as more spaced while in mozilla etc seems less spaced how to solve this issue. www.ims-sc.org please fix the peoblem. Okay so me and a friend are making a website for a highschool FBLA contest, and we are having an error with our template... so here is what it is in a nut shell this is what we want it to look like no spaces on the top or bottoms of the TVs THIS is what it looks like on the web, a big ole fat spacing in the table above and below the TVs that we do not want... we have tried a lot of things and can't figure it out...any suggestions? -thanks Legend Problem fixed hi guys... here's a layout i'm working on and i just can't seem to be able to get rid of the spacing on the bottom of the cells where i have a link with my rollover images... here's the url: http://geocities.com/antigatez/school/index.html any help would be appreciated... Hi All, I have a table under a div tag, and there seems to be some padding that I want to remove. I've set the padding and border-width property to 0px, but there gap's still there. Any suggestions? Thanks, HTML Code: <html> <head> <title>Untitled Document</title> </head> <body> <div id="stuff1" style="background-color: red">Stuff 1</div> <table style="padding-top: 0; border-top-width: 0px"> <tr><td style="background-color: Black">asd</td></tr> </table> </body> </html> Can anyone tell me why? Not sure what is going on here... Here is a link to the development site where you can see the problem I am having (I did not design it, but I am in charge of changing to html). http://www.vismarkgroup.com/dev/Kyrie/about.html Thanks!! 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 guys & girls, I've got a table nested within a table row. There's a small gap I can't close at the top of the table (see image, attached). Within the table I have cell padding, but it's much more dramatic than I want at the top and bottom. Is there any way to fix these problems with HTML and inline CSS (it's going to be an HTML e-mail). This is for a client and due tomorrow, so any help would be awesome. Thank you. HTML Code: <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="line-height:16px;"> <table width="600" border="0" bordercolor="#000000" cellspacing="0" cellpadding="0" style="border-top:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-bottom:1px solid #000000;"> <tr> <td><img src="images/ACP9040057_email_ClinicalPsychologist_01.jpg" width="600" height="88" alt="For What Matters Most"></td> </tr> <tr> <td><table width="600" border="0" cellspacing="0" cellpadding="0" style="padding:0; border:0"> <tr> <td align="center" valign="top"><table width="570" border="0" cellspacing="0" cellpadding="5"> <tr> <td width="359" align="left" valign="top"><p><font face="Arial, Helvetica, sans-serif" style="font-size:12px; text-align:left;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris congue porta tincidunt. Nullam et turpis lorem, sagittis adipiscing nunc. In orci orci, iaculis et sollicitudin ac, adipiscing vel magna. Nullam et orci in dui tristique ultricies. Donec ligula turpis, blandit eget egestas sed, semper eu elit. Nulla in dolor sapien. Suspendisse id nisi porttitor purus ullamcorper dictum. Mauris posuere libero massa.</font></p></td> <td width="171" align="center" valign="middle"><table width="140" border="0" cellspacing="0" cellpadding="15"> <tr> <td align="left" bgcolor="#b1c1c9"><font face="Arial, Helvetica, sans-serif" style="font-size:12px; font-weight:bold; line-height:16px; text-align:left;">Qualifications:</font><br /> <font face="Arial, Helvetica, sans-serif" style="font-size:12px; font-weight:normal; text-align:left;">To qualify you must be a U.S. citizen age 18–39 and enrolled in the United States or Puerto Rico.</font></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top"><font face="Arial, Helvetica, sans-serif" style="font-size:12px; font-weight:normal; text-align:left;">Give yourself the opportunity to concentrate on your education instead of the worries of accumulating debt. <a href="#">Click here</a> now to find out more.</font></td> <td align="center" valign="top"><a href="#"><img src="images/go_button.jpg" width="171" height="60" alt="Go Button" border="0"></a></td> </tr> </table></td> </tr> </table></td> </tr> <tr><td><img src="images/ACP9040057_email_ClinicalPsychologist_05.jpg" width="600" height="9" alt=""></td></tr> <tr><td align="center" valign="top" style="padding:0;"><table width="570" border="0" vspace="0" align="center" cellpadding="10" cellspacing="0" style="line-height:10px; text-align:left; display:block; border-collapse: collapse;"> <tr><td align="left" valign="top"><p><font face="Arial, Helvetica, sans-serif" style="font-size:10px; line-height:10px; text-align:left;">If you no longer wish to receive email communication from the U.S. Air Force, please click <a href="#" target="_blank">here</a>. <font face="Arial, Helvetica, sans-serif" style="font-size:10px; line-height:10px; text-align:left;">Your address will be removed from this email list.</font><br /><br /> Or send a request to:<br /> ddd<br /> ddd<br /> ddd</font></p></td> </tr> </table></td> </tr> </table> </body> </html> Hi, Thanks in advance for your help. I'm doing a web page that I would like to be viewed on 1024 resolutions without a horizontal scrollbar. It will contain images that are exactly 980px wide. The problem is that with ie7, as soon as it contains a div or a table, no matter what I do to try to remove all padding,margins,etc.. it adds 2px for each element (I guess 1px for each side). Below is some html as an example of my problem, where I've tried to remove everything I can think of... this works fine in firefox 3 <body style="width:998px;margin-top:0;margin-left:0;margin-right:0;padding:0;"> <div style="width:100%;textalign:center"><table border="0" cellspacing="0" cellpadding="0" style="width:998px;border-collapse:collapse;padding:0;margin:0;border:0;"><tr style="padding:0;margin:0;border:0;"><td style="padding:0;margin:0;border:0;">sdfsdfd</tr></td></table><div style="width:100%> </body> 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 <table width="30" border="5"> <tr> <td colspan="3" class="title2"> Select Data Source <asp:Button ID="btnCheckAll" ToolTip="Check All" OnClick="btnCheckAll_Click" runat="server" Width="20" Text="+" /> <asp:Button ID="btnUnCheckAll" ToolTip="Uncheck All" OnClick="btnUnCheckAll_Click" runat="server" Width="20" Text="-" /> </td> </tr> <tr> <td> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td class="parameterFrame"> <asp:CheckBoxList ID="cblQBCompany" runat="server"></asp:CheckBoxList> </td> </tr> </table> I have this table and what i am trying to go is to get my buttons to be align to the end of my CheckListBox right now it looks like Select DataSource button1 button2.... But i need Select DataSource Button1 button2 I dont know how to create padding or spacing betweeen of elements within the same table row Is there a way to eliminate whitespace between two elements. Here is a really simple example, where I want to eliminate the whitespace between two header elements. <h1> Hello, world </h1> <h2> yo, adrian! </h2> ...real estate is at a premium on the pages I'm working on, and I can't figure out how to get ride of this whitespace. I've tried css, where padding: 0px for the individual elements, as well as css for an encompassing div where padding: 0px but it doesn't work. Am I a nub or what!? I want a Header Graphic to be flush with the top of the webpage This is a copy of the Graphic; How do I make it from appearing with a space at the top of webpage like this . . . . . to appearing flush at the top of the webpage like this?; This is the Code I'm using: Quote: <html> <head> <title>Sample 15b</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#9FB6CD" link="#FFFFFF" vlink="#FFFFFF"> <div align="center"> <img src="http://i47.tinypic.com/b6dfte.png" width="871" height="131" longdesc="http://i47.tinypic.com/b6dfte.png"> <table width="768" border="0" cellspacing="0" cellpadding="0" height="100" bgcolor="#9FB6CD" align="center"> </table> </div> </body> </html> Can someone offer a solution? With appreciation I am retired, so now I no longer work for a living - Now, living works for me Here is my website: http://yourcarthings In the top heading, there is an unwanted red horizontal band. How can I get rid of this. I looked through the forum and tried their solution. Nothing luck. How can I eliminate the border space between two cells in same row? Even I used in css style: HTML Code: body, table, td,th,tr { padding: 0; margin: 0; border: 0; } HTML Code: <table width="80%" cellspacing="0"> <tr> <th colspan="2" scope="row"><div align="left"><img src="images/topPanel.jpg" width="800" height="134"/></div></th> </tr> <tr> <td width="14%" scope="col"><div align="left"><img src="images/sideBar.jpg" width="136" height="387"/></div></td> <td width="86%" scope="col"><div align="left"><img src="images/bodyFrame.jpg" width="664" height="387" border="0"/></div></td> </tr> <tr> <th colspan="2" scope="row"><div align="left"><img src="images/bottomPanel.jpg" width="800" height="79"/></div></th> </tr> </table> In IE6, it looks great. For FF, it shows the space between two cells in second row. www.deichselfamily.com FYI: this website is very simple. I am learning how to do the web design. Thanks. I am trying to put to tables next to each other side by side. These two tables are actually inside cells of a third "outer" table. I keep getting a white space inbetween the tables. How do I get rid of it? Is this going to show up if I put the code in? HTML Code: <head> <style type="text/css"> table.p { color:#000000; background-color:#ffffff; font-size: 100%; padding:0px; margin: 0; border-top: 1px solid #000000; border-left: 1px solid #000000; border-bottom: 1px solid #000000; border-right: 1px solid #000000; } </style> </head> <table border="0" width="100%" height="82"> <tr> <td width="50%" height="76"> <table class="p" border="0" width="100%"> <tr> <td width="100%">table 1</td> </tr> </table> </td> <td width="50%" height="76"> <table class="p" border="0" width="100%"> <tr> <td width="100%">table 2</td> </tr> </table> </td> </tr> </table> I used the "clear pixel trick" to put space between some links (see code below). It works, but the thing that bugs me is that a blank space remains at the beginning and end of each link (except for the first link, which only has a blank space at its end). See the webpage if you want to see exactly what i'm talking about: www.chicagolandaudioconsultants.com This looks a bit sloppy to me and i'd like to get rid of these spaces. Does anyone know how I can do that? Thanks, any help is appreciated. <A HREF="http://www.chicagolandaudioconsultants.com/aboutus.html">[About Us]</A> <IMG SRC="dot_clear.gif" border="0" HEIGHT="1" WIDTH="30" HSPACE="1" VSPACE="1"> <A HREF="http://www.chicagolandaudioconsultants.com/lessonsandtutoring.html">[Lessons and Tutoring]</A> <IMG SRC="dot_clear.gif" border="0" HEIGHT="1" WIDTH="30" HSPACE="1" VSPACE="1"> <A HREF="http://www.chicagolandaudioconsultants.com/computerrepair.html">[Computer Repair]</A> <IMG SRC="dot_clear.gif" border="0" HEIGHT="1" WIDTH="30" HSPACE="1" VSPACE="1"> <A HREF="http://www.chicagolandaudioconsultants.com/studiodesign&installation.html">[Studio Design and Installation]</A> <IMG SRC="dot_clear.gif" border="0" HEIGHT="1" WIDTH="30" HSPACE="1" VSPACE="1"> <A HREF="http://www.chicagolandaudioconsultants.com/advancedtutorials.html">[Advanced Tutorials]</A> So often when I create a form, a simple form with one text box the form tag adds a bunch of space below when I want it "lean" with zero space. For example a table row... <table> <tr bgcolor="#ffcc33"> <td valign="top" align="left" width="25%"></td> <td valign="top" align="center"><form action="http://www.sanluisshopper.com/search_businesses.php" method="GET" name="search"><input type="Text" name="search" size="20" name="search"><input type="Submit" value="Shop!"></form> </td> <td valign="top" align="right" width="25%"></td> </tr></table> Is there any way to eliminate this extra space? This has driven me batty! Thanks. |