HTML - Inline Product Thumbs Skip Spaces?
I'm working on a customer's website and I've entered 10 new products. The most she has in any one category is 8 (2 rows of 4) so its not on any other page. I entered the products and the first 8 show like normal, the 9th thumb skips 3 spaces and then the 10th jumps to the next line.
Here's the page: http://www.vgeecosmetics.com/product_list.php?typeId=51 Same thing in FireFox, IE, Opera and Safari so I don't think this is a browser issue. I can't see anything in the PHP or HTML that would cause this. Can anyone help? Similar TutorialsHey guys, I'm just starting my first website www.overheardincp.webs.com and I needed some help. It's basically a blog type website, that highlights all the dumb stuff that's been heard over campus. But, I need some help with creating thumb up and thumb down counters for each post, or something similar. These things have been seen on a lot of comment boards, and I wanted to implement it on my blog for each post as well. Can anyone help me with this? Thank you Hello All! First time poster here! I am looking to put something to the effect of, "Do you find this information useful...thumbs up....thumbs down" on a portion of my web page. I would also like to keep a record of the "votes" for each article. Is there a script (or anything else) that will help me accomplish this?! Thanks in advance, Pat In a nutshell: --- The following <li> tags are inline-blocks. Why does removing the closing <li> tags fix the whitespace issue? Code: <li>Item one</li> <li>Item two</li> <li>Item three</li> Versus... Code: <li>Item one <li>Item two <li>Item three The context of this question: --- From: CSS display: inline-Block: Why It Rocks, And Why It Sucks The above post is about using inline-block instead of float to position <li> elements, which is useful for making navigation bars. There is one drawback to using inline-block: (You can copy and paste the first piece of code below to see what I'm talking about.) If you restrict the <ul> to a particular width, your navbar won't display correctly, which has something to do with hitting the RETURN key between your lines of code (whitespace issues?). See below: This works fine because there we didn't hit RETURN to create a line break between each list. <li>Item One</li><li>Item Two</li> Here, we hit RETURN to put each list on a separate line and now the code doesn't display properly. The first piece of code below illustrates this problem. <li>Item One</li> <li>Item Two</li> The second piece of code solves this problem by using comments to remove the whitespace. The third piece of code solves this problem by removing the closing <li> tags. My question is, how does removing closing tags change anything? Are there any issues I should be aware of if I use this solution? Are there other contexts where I can apply a similar technique? Code: <style type="text/css"> ul#display-inline-block-example, ul#display-inline-block-example li { margin: 0; padding: 0; } ul#display-inline-block-example { width: 300px; border: 1px solid #000; } ul#display-inline-block-example li { display: inline-block; width: 100px; min-height: 100px; background: #ccc; vertical-align: top; } </style> <ul id="display-inline-block-example"> <li>Item one</li> <li>Item two</li> <li>Item three</li> </ul> Code: <style type="text/css"> ul#display-inline-block-example, ul#display-inline-block-example li { margin: 0; padding: 0; } ul#display-inline-block-example { width: 300px; border: 1px solid #000; } ul#display-inline-block-example li { display: inline-block; width: 100px; min-height: 100px; background: #ccc; vertical-align: top; } </style> <ul id="display-inline-block-example"> <li>Item one<!-- --><li>Item two</li><!-- --><li>Item three</li> </ul> Code: <style type="text/css"> ul#display-inline-block-example, ul#display-inline-block-example li { margin: 0; padding: 0; } ul#display-inline-block-example { width: 300px; border: 1px solid #000; } ul#display-inline-block-example li { display: inline-block; width: 100px; min-height: 100px; background: #ccc; vertical-align: top; } </style> <ul id="display-inline-block-example"> <li>Item one <li>Item two <li>Item three </ul> I need some sort of product comparison tool, script, or coding for my website. You must be able to select your line of work and any features you need, and have it match you with the correct product for you. First, are there any ready-made scripts for this? If not, what programming llanguage should be used? I am thinking of added a product review on my web site, but I haven't any idea of how to start. Has anybody done anything like this? Thanks for any leads you may have. Hi everyone, I am creating a new products page (Which will hold 4 products) My boss wants a Short description and a picture... I am creating the page but it looks very boring... wondering if anyone had any ideas of how to spice it up... I am okay with flash but I am trying to avoid using flash... I am pretty bad with html... so thats why i am browsing for ideas... maybe a picture and when you rollover it you get a description? Is that possible with javascript or html? Thanks M So i haven't been able to figure this out and in need of some assistance.Here is the code.want to put them in rows of 2 & columns of 4 but instead it put them in a list.Im sure this is a simple fix.I only have it set up to list 5 products but can set it up for more.If you need the entire page of code just let me know. The webpage for the code http://www.allyugioh.com/products_list <!-- Item loop --> <notag rst:define:img="item1:/ImageUrl" rst:define:notavailable="0" /> <notag rst:ifnot="{img}" rst:define:img="img/noimage.gif" /> <notag rst:if="{item1:/QtyAvailable} le 0" rst:define:notavailable="1" /> <div rst:if="item1:/Title"> <hr/> <a href="#" rst:content="item1:/Title" rst:href:lid="{item1:@id}" rst:href:pagename="product">name</a><br /> <img border="0" height="100" rst:attr:id="thumb{item1:@id}" rst:attr:src="{img}" src="img/imgb.gif" width="100" /><br /> <div class="prod_details_tab"> <b><i rst:content="{item1:/Price@currency}{item1:/Price}">$1</i><br /></b> <a href="#" rst:href:lid="{item1:@id}" rst:href:verb="ATC" rst:href:pagename="cart" rst:ifnot="{notavailable}">add to cart</a> </div> <i rst:content="">$1</i><br /> <i rst:content="">$1</i><br /> <br /><br /> </div> </notag> <!-- Item loop end --> Hello, I have designed sites in the past but am in need of some assistance. I am designing a website for an artist who wants to be able to offer his clients fine art prints for sale. He needs to be able prints with several different product options; i.e. canvas print with 1" stretch, 2" stretch and framed prints. I want to be able to offer check boxes (or equivalent) that will display an image of the different product options available. If the 1" stretch check box is checked I need an image of a canvas on a 1" gallery wrap frame to be displayed. If they click on the "frame" check box, I need an image of a framed painting to be displayed. What is the best method to use to accomplish this? I've researched and experimented but am at a bit of a loss. Any help will be greatly appreciated. Thank you in advance!! -John Hello all. Just joined and I have what I know is a simple question. Trying to remove a space between the top image and the legend I just created. Thanks, Doug Code: <div id="main-copy"> <div style="width:755px; margin: auto; text-align: center; color: #000000; font-weight: bold;"> <p>Click on radar image to loop!</p> <p>GR Level III Base Reflectivity<br/><a href="/wx21.html"><img src="/GR3/kfdr_br1.png"></a></p> <p><img src="GR3/legend3.png" width="750" height="40"/></p> <p>GR Level III Echo Tops<br/><a href="/wx22.html"><img src="/GR3/kfdr_et.png"></a></p> </div> </div> </div> <!-- ##### Footer ##### --> Looks like: http://www.ardmoreweatherlive.com/wx3.html Hi, I'm new to this forum. I'm having a little problem. It's the first time I'm working with DIV containers. I want to place 4 containers one below the other with no spaces in-between. In Firefox it works fine but not in IE. Can this problem be fixed? /Patrick I am having some basic HTML issues... The code is as follows: Code: <body onload="MM_CheckFlashVersion('7,0,0,0','Content on this page requires a newer version of Macromedia Flash Player. Do you want to download it now?'), resizeTo(700,560);"> <div id="horizon"> <div id="content"> <div class="bodytext"> <table width="100%" height="480" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="2" align="center" valign="middle" style="background-repeat: no-repeat; background-position:bottom right;"><table width="0" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="21" height="16" align="right" valign="bottom"><img src="images/tv/upper-left.gif" alt="tv-upper-left" width="21" height="16" /></td> <td width="320" height="16" align="center" valign="bottom"><img src="images/tv/top.gif" alt="tv-top" width="320" height="16" /></td> <td width="21" height="16" align="left" valign="bottom"><img src="images/tv/upper-right.gif" alt="tv-upper-right" width="21" height="16" /></td> </tr> <tr> <td width="21" height="240" align="right" valign="middle"><img src="images/tv/left.gif" alt="tv-left" width="21" height="240" /></td> <td width="320" height="240" align="center" valign="middle"><script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','width','320','height','240','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=flv/AlcoaHybridAeroW&autoPlay=true&autoRewind=true','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','FLVPlayer_Progressive' ); //end AC code </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="320" height="240" id="FLVPlayer"> <param name="movie" value="FLVPlayer_Progressive.swf" /> <param name="salign" value="lt" /> <param name="quality" value="high" /> <param name="scale" value="noscale" /> <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=flv/AlcoaHybridAeroW&autoPlay=true&autoRewind=true" /> <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=flv/AlcoaHybridAeroW&autoPlay=true&autoRewind=true" quality="high" scale="noscale" width="320" height="240" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object></noscript></td> <td width="21" height="240" align="left" valign="middle"><img src="images/tv/right.gif" alt="tv-right" width="21" height="240" /></td> </tr> <tr> <td width="21" height="69" align="right" valign="top"><img src="images/tv/lower-left.gif" alt="tv-lower-left" width="21" height="69" /></td> <td width="320" height="69" align="center" valign="top"><img src="images/tv/bottom.gif" alt="tv-bottom" width="320" height="69" /></td> <td width="21" height="69" align="left" valign="top"><img src="images/tv/lower-right.gif" alt="tv-lower-right" width="21" height="69" /></td> </tr> </table> <p><input type="button" value="Close Window" onclick="window.close()"></p> </span></p></td> </tr> </table> </div> </div> </div> </body> the link to a sample of this page is: http://www.mirageadv.com/beta/galler...bridAeroW.html Can someone take a look at this and tell me why I am getting the spaces in the graphics at the top and bottom... Thanks - Jim Is there a way to make the spaces in between each link in the navbar go away? becuase i need to put 2 more links and if i did it the way where i have no spaces in between it would work out perfectly, p.s. you can join the furms, lol. here is the site http://wiseones.50webs.org/index.html here is the navbar code Code: <ul> <li><a href="index.html" title="Home">Home</a></li> <li><a href="http://wiseones.jokemaster.org/" title="Spirituality Forums">Spirituality Forums</a></li> <li><a href="spiritualityarticles.html" title="Spirituality">Spirituality</a></li> <li><a href="religiousarticles.html" title="Religious">Religious</a></li> <li><a href="itemsarticles.html" title="Items">Trees,Gems,Herbs,& Items</a></li> </ul> can someone also tell me what the ul's mean? i cant seem to get rid of the space between my two images in this table to align my layout images flush with each other . anyone got any ideas? here is an example of what my problem is: http://hollecost.webs.com/index.htm heres the table coding for that example page of my problem: <table cellspacing="0" cellpadding="0"> <tr> <td> <img src="/images/top.jpg"> </td> </tr> <tr> <td background="/images/bottom.jpg" height="440" > </td> </tr> </table> http://wlab.canisius.edu/~dunkleb/cl...s/schedule.php Someone PLEASE explain where my spaces went. doesn't work. Copy/paste anything on that site to a text editor; the spacebar spaces are GONE. WTF. i am trying to create a bullet point list but have spaces inbetween each bullet point item. i tried <br> but no luck. Code: <UL> <LI> <DIV align=left><SPAN style="COLOR: #333333">Stated Income with good credit</SPAN></DIV> <LI> <DIV align=left><SPAN style="COLOR: #333333">5/1, 7/1, 10/1 and 30 Yr Fixed<SPAN style="COLOR: #333333"><IMG border=0 hspace=0 align=right src="http://www.sharperemail.com/se_members/4346/ftp/raintree_hoa_images/happy-elephant-02-gif.gif" width=215 height=215></SPAN></SPAN> </DIV> <LI> <DIV align=left><SPAN style="COLOR: #333333">Interest Only</SPAN> </DIV><SPAN style="COLOR: #333333"> <LI> <DIV align=left>Cash out up to 250,000</SPAN> </DIV> <LI> This is my very first post on this forum, so please, be gentle with me. I write my websites in HTML code but recently I seem to have created an anomaly that I cannot get to the bottom of. If you pop over to this page: http://website.lineone.net/~barrybboor/tirol58.html you will see a very large space below the 'FULL RESULT' line and the start of the result table. According to the coding I have, there shouldn't be any such space but I can see no reason for it and cannot find a way to reduce it. Can anyone help a poor elderly novice, please? Hope I put this in the right section. The website I'm creating has a shopping cart. Respectivley there's a "view cart" button in the menu bar. But when I put the button in the menu, a blank space appears underneath the table like it's a break line. I viewed the page without the button and everything's perfect, so I'm pretty sure it's the form. I've tried putting the form itself into a table will zero-value margins, but it didn't seem to do anything. Is there anyway to get rid of the blank spot? I'm probably missing something. The program I'm using is Dreamweaver. =P Code: <table id="Table_01" width="800" height="48" border="0" cellpadding="0" cellspacing="0"> <tr> <td><a href="ciol_website/rosaries.html"><img src="ciol_website/slice/ciol_tab_01.gif" alt="" name="image1" width="160" height="24" border="0" id="image1" onmouseover="MM_showMenu(window.mm_menu_0825155153_0,0,24,null,'image1')" onmouseout="MM_startTimeout();" /></a></td> <td><a href="ciol_website/unique_items.html"><img src="ciol_website/slice/ciol_tab_02.gif" alt="" name="image2" width="160" height="24" border="0" id="image2" onmouseover="MM_showMenu(window.mm_menu_0825155740_0,0,24,null,'image2')" onmouseout="MM_startTimeout();" /></a></td> <td><a href="ciol_website/spec_occas.html"><img src="ciol_website/slice/ciol_tab_03.gif" alt="" name="image3" width="160" height="24" border="0" id="image3" onmouseover="MM_showMenu(window.mm_menu_0825160111_0,0,24,null,'image3')" onmouseout="MM_startTimeout();" /></a></td> <td><a href="ciol_website/just_for_kids.html"><img src="ciol_website/slice/ciol_tab_04.gif" alt="" name="image4" width="160" height="24" border="0" id="image4" onmouseover="MM_showMenu(window.mm_menu_0825160607_0,0,24,null,'image4')" onmouseout="MM_startTimeout();" /></a></td> <td><a href="ciol_website/aboutus.html"><img src="ciol_website/slice/ciol_tab_05.gif" alt="" name="image5" width="160" height="24" border="0" id="image5" onmouseover="MM_showMenu(window.mm_menu_0825160731_0,0,24,null,'image5')" onmouseout="MM_startTimeout();" /></a></td> </tr> <tr> <td width="160" height="24" align="center" valign="top"><a href="ciol_website/media.html"><img src="ciol_website/slice/ciol_tab_06.gif" alt="" name="image6" width="160" height="24" border="0" id="image6" onmouseover="MM_showMenu(window.mm_menu_0825160842_0,0,24,null,'image6')" onmouseout="MM_startTimeout();" /></a></td> <td width="160" height="24" align="center" valign="top"><a href="ciol_website/accessories.html"><img src="ciol_website/slice/ciol_tab_07.gif" alt="" name="image7" width="160" height="24" border="0" id="image7" onmouseover="MM_showMenu(window.mm_menu_0825160954_0,0,24,null,'image7')" onmouseout="MM_startTimeout();" /></a></td> <td width="160" height="24" align="center" valign="top"><a href="ciol_website/catholicessentials.html"><img src="ciol_website/slice/ciol_tab_08.gif" alt="" name="image8" width="160" height="24" border="0" id="image8" onmouseover="MM_showMenu(window.mm_menu_0825161102_0,0,24,null,'image8')" onmouseout="MM_startTimeout();" /></a></td> <td width="160" height="24" align="center" valign="top"><a href="ciol_website/for_you.html"><img src="ciol_website/slice/ciol_tab_09.gif" alt="" width="160" height="24" border="0" /></a></td> <td width="160" height="24" align="center" valign="top"><form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_cart" /> <input type="hidden" name="business" value="e@mail.com" /> <input type="hidden" name="display" value="1" /> <input type="image" src="http://catholicitemsonline.com/ciol_website/slice/ciol_tab_10.gif" border="0" name="submit" alt="View items in your cart." /> </form> </td> </tr> </table> I have searched this and other forums and tried everything I could possibly think of to fix this. The space doesn't appear in any browser except IE, and unfortunately I need to make the site work fine in IE as well: http://www.mountwernerrealty.com/index3.html how do i remove these spaces between my images and table? if you view the page theres spaces between the two images and for some reason on the bottom it shows a small image of my mid body image here is the link: http://lilions.com/contact/ Code: <code> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"> <html> <br></br><br></br> <img src="http://lilions.com/home/images/tpc.jpg"><img src="http://lilions.com/home/images/cnttp.jpg"><center><table width=1000 height=450><td background="http://lilions.com/home/images/cntmid.jpg"></center><center><font color="#FFFFFF"><table border="3" bordercolor="FFFFFF" width="630" bgcolor="000000"></br><td><p><i><b><center><font color="#FFFF00">donbonacorsa@yahoo.com <donbonacorsa@yahoo.com></center></b></i></p></font> <?php if ($_POST["email"]<>'') { $ToEmail = 'donbonacorsa@yahoo.com'; $EmailSubject = 'Site contact form from www.LiLions.com'; $mailheader = "From: ".$_POST["email"]."\r\n"; $mailheader .= "Reply-To: ".$_POST["email"]."\r\n"; $mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n"; $MESSAGE_BODY = "Name: ".$_POST["name"]."<br>"; $MESSAGE_BODY .= "Email: ".$_POST["email"]."<br>"; $MESSAGE_BODY .= "Comment: ".nl2br($_POST["comment"])."<br>"; mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure"); ?> <center><h4><b> Your message was sent </center></h2> <?php } else { ?> <form action="index.php" method="post"><table width="630" border="0" cellspacing="2" cellpadding="0"> <h4> <center> <p>Have questions or comments? Please feel free to fill in the form below to send me an email.</p> </center> </h4> <center></h4><div id="content"> <p><tr align="center"><center> <td width="29%" class="bodytext">Your Name (required):</td></tr> </center> <tr align="center"><center> <td width="71%"><input name="name" type="text" id="name" size="32"></td></tr> </center> </p> <p><tr align="center"><center> <td class="bodytext">Your Email (required)</td></tr> </center> <tr align="center"><center> <td><input name="email" type="text" id="email" size="32"></td></tr> </center> </p> <p><tr align="center"><center> <td class="bodytext">Subject</td></tr> </center> <tr align="center"><center> <td><input name="subject" type="text" id="subject" size="32"></td></tr> </center> </p> <p><tr align="center"><center> <td class="bodytext">Comment:</td></tr> </center> <tr align="center"><center> <td><textarea name="comment" cols="45" rows="6" id="comment" class="bodytext"></textarea></td></tr> </center> </p> <p><tr align="center"><center> <td class="bodytext"> </td></tr> </center> <tr><center> <td align="center" valign="top"><input type="submit" name="Submit" value="Send"></td></tr> </center> </p></table></tr></td></form> </div> </b> </h3> </table> <?php }; ?> </body> </html> <center> <img src="http://lilions.com/home/images/cntbtm.jpg"> </center> </code> |