Jump to content

jumpenjuhosaphat

Members
  • Posts

    87
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jumpenjuhosaphat's Achievements

Member

Member (2/5)

0

Reputation

  1. That's quite odd. I looked at your source code, and searched for "id!" and could only find 2 occurrences of it, but it occurs 3 times in the browser. I thought maybe it was a javascript issue at first, but I couldn't find any JS. Try figuring out which one of the div's it's happening to by changing the last word in your box's to be different.
  2. Have you tried using line-height:0; in you li properties?
  3. I think - don't quote me - that the reason this happens is because in FF floated elements don't expand their containing elements, they "float" over the perimeter instead of pushing the perimeter out with it. When you clear the floats, it forces the containing element - in your case, superbox - to expand to match it's child floated elements.
  4. Clearing both floats will help: <html> <head> <style type="text/css"> div.superbox { border: 1px solid #000000; width: 80%; margin-left: auto; margin-right: auto; } div.subbox1 { float: left; } div.subbox2 { float: right; width: 30% } </style> </head> <body> <div class="superbox"> <div class="subbox1"> Content1 </div> <div class="subbox2"> Content2 <div>Another another</div> <div>And another</div> </div> <div style="clear:both"></div> </div> </body> </html>
  5. It would help if you were moer specific as to what you are trying to do. At first I didn't know what you were talking about, until I viewed your page in IE. So, it is my guess that you want your menu items to drop 10px when you hover over them? In firefox, your content moves to the right. What is the purpose of using the table? In your opening <td> tag, you have ended it with a "/", try removing that. Also, try using line-height:0; in your :hover CSS.
  6. I have found several mentions of bus on the internet concerning IE floats and images, but none seem to address my problem. <!-- *********TOP CONT In********** --> <div class="real_top_cont"> <div class="real_right"> <?php if (isset($primary_links)) { ?><?php print theme('links', $primary_links, array('class' => 'links', 'id' => 'navlist')) ?><?php } ?> </div> <div class="real_top"> <img src="/themes/real_estate/images/top-image.jpg"> </div> </div> <!-- *********TOP CONT Out********** --> ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,body,html,p,blockquote,fieldset,input,div,a,img { padding:0; margin:0; border:0; line-size:0; } h1,h2,h3,h4,h5,h6,pre,code { font-size:1em; } a img,:link img,:visited img { border:none } ul,ol,li { list-style:none } body { background-color:#4A6529; text-align:center; color:#FFFFFF; } .real_main { margin:0 auto; width:790px; text-align:left; background-color:#637D39; background-image:url('/themes/real_estate/images/back.png'); background-repeat:repeat-y; border-left:2px solid #FFFFFF; border-right:2px solid #FFFFFF; } .real_content { width:556px; float:right; } .real_right { float:right; width:232px; height:217px; background-color:#CCCCCC; } .real_top_cont { border-bottom:2px solid #FFFFFF; height:217px; } The problem that I am having is that in IE, the image that is supposed to appear on the left of the .real_right div is falling below. I have tried adjusting the width until it was obvious that the image should clear the .real_right div, but the image still drops below as if I haven't floated it at all. The site that I am working on is http://www.mobile-home-sales.com Also, on the same site, in the .real_top_cont div, in IE there is a space between the image and the 2px border bottom which I don't want to be there. I have tried making the image a block, tried removing the baseline alignment, and given a line-height of 0 to it's container, yet for some reason, the space is still there. Thank you for any help of advice that you might offer.
  7. When I hover over a link on my web page, the status bar reads like this: http://www.mysite.com/"http://www.site-Im-linking2.com"/ Here is the code: <body bgcolor="#ccc8b8"> <div class="main"> <img src="images/shed.jpg" alt="Shed-n-Deck, call today to schedule an installation 720-229-7682"/> <div class="menu"> <ul> <li><a href="www.shed-n-deck.com">Home</a></li> <li><span>Sheds</span></li> <li><a href=”http://www.shed-n-deck.com/decks.html”>Decks</a></li> <li><a href=”http://www.shed-n-deck.com/gazebos.html”>Gazebos</a></li> <li><a href=”http://webdesigninfo.wordpress.com”>Downloads</a></li> </ul> </div> <h3>Why choose Shed-n-Deck to build your shed?</h3> <p>Although price is an important factor when choosing who to install your backyard storage shed, it is only one of many reasons why Shed-n-Deck should be your choice.</p> </div> </body> Does anyone have any idea as to why this is happening?
  8. What sort of form? Would the form ask questions to further narrow the users first query?
  9. I did something similar with UK postcodes. Do you have a database with all of the UK postcodes? If not, I'd be glad to share mine, I have a DB that is a list of all UK postcodes that I use to determine distance between postcodes...Maybe that would help. Instead of sorting WHERE and LIKE, you could do it by distance between postcodes? I'll throw the PHP script in that I use to calculate distance too if you are interested......
  10. It always seems to be the most obvious answer to the problem.....I forgot to place http:// in front of the IP address, and that's why it wasn't loading......
  11. I should also add that if you try to get the image using the <img> tag, the image doesn't show up.....But if you run the image producing script directly from the browser, the image appears fine... Originally I was getting results from http://64.39.14.230/dh-asp/image.asp?url=www.phpfreaks.com&w=800&h=600 and it worked fine....I could use that url in an image tag and the image would appear....But I have since created my own image capture and placed it on my home computer....So if you wanted to get a screen capture for phpfreaks, you would follow this link http://75.70.58.210/?site=www.phpfreaks.com, or you could change the website to any website and the script will produce a medium sized image of the website.....But for some reason, I am unable to place that URL into the img tag and have that image appear....
  12. I have a script running on Server1 that creates an image, saves it, then loads it and sends it to the browser, then deletes the image from disk.....Server2 needs to have access to that image, and have the ability to manipulate the image. Server1's address would look something similar to http://128.23.23.23/file.php?name=picname Now what I need to do is access that image from Server2, and save it as a jpg. Server1 (image sender) is running this script: $pic=$_GET['pic']; //Some code to create the image goes here....It works fine.....saves the image fine... header("Content-Type: image/jpeg"); $theImage = imagecreatefromjpeg('C:/wamp/www/'.$pic.'.jpg'); imagejpeg($theImage); unlink('C:/wamp/www/'.$pic.'.jpg'); Server2 (image requester) is running this script: $url='sitename/file.php?pic=nameofpic'; $dst_img=imagecreatetruecolor(350, 270); $src_img=imagecreatefromjpeg($url); imagecopy($dst_img, $src_img,0,0,0,0,350,270); imagejpeg($dst_img, './images/'.$_POST['url'].'.jpg', 100); imagedestroy($dst_img); When I try to run the Server2 script I get an error: Warning: imagecreatefromjpeg(sitename/file.php?pic=picname) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in /home/crystal/public_html/thumb.html on line 8
  13. Here is the full code: <?php if(isset($_GET['submit'])) { $url=$_GET['site']; $thePage = new COM("ABCDrawHTML2.Page"); $thePage->Url = ($url); $theImage = $thePage->GetAs("image.jpg", 350, 270, 60); header("Content-Type: image/jpeg"); header('Content-Disposition: inline; filename="image.jpg"'); imagejpeg($theImage); $thePage->Save('C:/wamp/www/'.$url.'.jpg'); } echo' <form method="get" action="david.php"> <input type="text" name="site"/> <input type="submit" name="submit"/> </form> '; ?> It doesn't even echo the form or the image at the end of the script.....The script stops without any errors for no apparent reason...I moved the ->GetAs, and the script continued until it came to that, and just quit....
  14. That's what I thought...But my result is a page with the page URL printed in the browser window, and no source code...And when I right click the text, it shows up like it is an image...ie "Copy Image", "Copy Image Location"....Etc. <?php if(isset($_GET['submit'])) { $url=$_GET['site']; $thePage = new COM("ABCDrawHTML2.Page"); $thePage->Url = ($url); header("Content-Type: image/jpeg"); header('Content-Disposition: inline; filename="image.jpg"'); $theImage = $thePage->GetAs("image.jpg", 350, 270, 60); $thePage->Save('C:/wamp/www/'.$url.'.jpg'); } ?> The image saves fine, but I am trying to avoid saving it, because I will be accessing this from a different server, and I don't want the images to overload my home computer.
  15. I would like to know if anyone knows how I could go about sending an image to the browser that is binary. Here is what I am doing right now...but it's not working: header("Content-Type: image/jpeg"); header('Content-Disposition: inline; filename="image.jpg"'); $theImage = $thePage->GetAs("image.jpg", 350, 270, 60); imagejpeg($theImage); I have an ASP script that I am going off of to pull this together, and it uses "Response.BinaryWrite", is there an equivalent in PHP?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.