HTML - Sizeing Error - Any Ideas?
Hello,
I am not completely new to CSS or XHTML but I am having a problem that I have never come across before. Basically the problem is sizing with elements in the content field of my site. Here is an example: if I make an image like this Code: <img height='150' width='150' ..... > The height and width do not work properly in FF but if I change it to this: Code: <img style=" height:150px; width:150px;" ..... > Than it works. Why would it ever ignore the native height and width inside an image tag ( and other tags as well) What I am trying to do is create an environment that most anyone web developer can build quick content into my template. But if odd situations like this continue to happen it will not be user friendly at all. I assume there is some type of inheritance issue going on ( note I never use the inheritance property in my content div). Is there a way to create a div where its contents are unaffected by all the divs creating the template??? Thank you for the help Similar TutorialsHow does one enable automatic re-sizing of a web page based of the viewers resolution and browser? Hi guys. I'm working on a website for my shop, using html, php and mysql. At the moment I'm using frames but don't really like how it looks. have a look at www.jroche.com/shop I think it looks very cheap. Just wondering does anyone have any suggestions as to how i could improve it? I'd really appreciate any comments or code suggestions anyone could make. Ideally id like to have it all in one page, as opposed to using the frame layout im currently trying. I'm only working on it now so some links don't work. Thanks Hell everyone. This is my first post and im sure it will not be my last here on HTMLforums.com. I am looking to create a web page and host it using godaddy.com. I would like to have a forum on it but I am having complete creativity block here and i do not know what i want my website to be about. I love technology and i am currently a student at the University of Phoenix online and i am getting my associates degree in Information Systems. I also enjoy cars, sports, outdoors, travel and other things. I am 20 years old and am from New Jersey. The purpose of this site is to maintain an up to date example of my web design skills to show a potential employer. Please if you have any ideas let me know. I can be reached via e-mail at laxmetal23@verizon.net. I am also usually on AIM and my sn is UNC6183. Please let me know. Hey, I recently logged onto my old Piczo site which I used to store pictures on( The site domain being; http://www.badboypicturessss.piczo.com/?cr=1 ) . After logging in I discoverd no images show. Just a red cross upon the corner (I've tried to view on Firefox and Internet Explorer) When clicking propeties on the picture and entering into the Firefox html I am met with, This XML file does not appear to have any style information associated with it. The document tree is shown below. − <Error> <Code>AccessDenied</Code> <Message>Access Denied</Message> <RequestId>4B0C38630330B989</RequestId> − <HostId> 0hsgiTfM+6zl+X127uhukEZM6SYj0D+HCeYk113cG8ftnK0AM5 knte5VpiqDEKo4 </HostId> </Error> Am running out of ideas of how to get the images to show, I've tried numerous forums seeking the answer to how to display the images! Thanks for reading, be great if you could help! Hi all -- Working with a tight deadline (2 weeks) and need to come up with a solution. My company has a library of promotional materials that it makes available internally. Currently, we have a little ASP ordering app that lets employees create a cart of items and order these materials. (There is no money changing hands, it's all free.) As it stands, the plug on this app will need to be pulled on December 31st, and I need to find a new solution. I am not well-versed enough in ASP to be able to develop a new app in the given time frame, and I need something relatively simple that can get the job done. Ideally, we could take this app and move it elsewhere, but that doesn't look like it's going to be possible. Any and all ideas would be MUCH appreciated!!! Hey. First of all my html etc skills aren't any good. I have a basic understanding how it works etc, but thats about it :s So, I know how to use Photoshop, and the basics of dreamweaver. And this is what i have made so far: http://wasnicht.urli.net/ I have 2 versions, that one, and one which isn't so wide. But otherwise it's the same, except that in the uploaded version there, i dont have an iframe inside the box. So my problem here is that whenever I type something in the middle, that exceeds its original size, it expands, thats meant to do so, but it also expands the navigation bar and the rest of the page, leaving it messy and pretty, well... I'd need some ideas how to fix this, e.g. if I made a index page, just like that, without the text box, and made an iframe, that expands downwards, inside it, put a separate .html (the box). I'm not gonna rip my ass off trying it, I'd really want some ideas how to construct it. Another problem I had with the box was that the right side image of the box (the dropshadow is 90 degrees), the shadow wouldnt go with a constant depth from the top to the bottom, so when the image repeated itself i had an ugly "error". What I did was to remove the shadow of the text box entirely. My page scrolls and it shouldn't! Any ideas...? or can I not see the wood for the trees? Link My previous post meantioned that I have made an advert using HTML in a page using a table and I'm using an IFrame to embed this into my main pages where needed. I've hit a real problem this time. The table I've made seems to set its own minimum width for cells. As a result this causes the end cell to slightly spill off the edge of my pages. I have manually changed everything I can possibly think of, and nothing seems to work. In what instance would a table do this? The table is in a form. Inside the table in each cell I have 1 line of text, followed by a input box directly underneath, followed by another input box directly underneith, followed by a text hyperlink directly underneath that. I have the html in the text file attached if you want to have a little nosy (the javascript file referenced is to periodically change the text of the second box in each cell). Any ideas would be much appreciated. I've spent far too much time on this advert than I would have liked... Regards Hi again guys, I have a new problem this time! On this page on my website: http://www.modular9.co.uk/artists.html I have it that when you rollover a link it changes from the artist's name to the collective name and back again. Obviously this causes a few problems such as the length of 'modular9' is shorter than most names so because they jump up a line when it is rolled-over the whole script freaks out and you get a mess. I was just wondering if you knew of any other better script that would keep the same dimensions of the original text or some other idea you could share? My script for this is: <a href="#" class="links" onclick="MM_openBrWindow('artists/richardcook.html','modular9','scrollbars=yes,width=457,height=600')" onMouseOver="this.innerHTML = 'modular9';" onMouseOut="this.innerHTML = 'richard cook';">richard cook</a> Highlighted red is the main rollover change. Any help/idea would be most appreciated! Thanks again Richard Hi! I have a problem here which really really annoys me. http://members.dodo.com.au/~rouslan/...ite/index.html when you look at the page it looks great with Firefox and when you look at it with Internet Explore 7 it also looks fine except the main content is not absolutely centered. In Internet Explore 7 you can see that by comparing margins, the left one is shorter than the right one. How can I fix that? p.s. I am a lot out-of-dated with HTML, because the last time I was constructing web pages 8 years ago, so you might notice in source I use a lot of tables, etc. If you can suggest I should change all the code, please do or simply paste it here as solution. Thank you! What are the common issues with websites not being properly displayed in Firefox? Reason is due to my website being displayed correctly in IE but when switching to Firefox the site suddenly breaks apart. Any ideas? Hi guys, I got a quick question. I can't for the life of me understand why the youtube, facebook and twitter images below absolutely insist on having a few pixels of space to the bottom of it's line. It makes it so the following link-text seem to be too low on the line in comparison to the image. If you see in the lower left corner of www.leveldance.com you can see what i mean. Any ideas? (I have no padding added in the css) Thanks a million in advance! HTML Code: <div class="left_col_container"> <div><img src="images/navigation/sociables_headline.png" alt="Join Our Community!"/></div> <p style="margin-top: 5px; margin-bottom: 0px">Join the newsletter!</p> <style type="text/css">.af-form {margin:0 !important;}</style> <script type="text/javascript" src="http://forms.aweber.com/form/36/693624936.js"></script> <div style="margin-top: 5px"> <a class="sociables" href="http://www.facebook.com/leveldance" target="_blank"><img src="images/sociables/faceBook-icon.png" class="no_border" alt="Find us on Facebook!"/></a><a class="sidebutton" href="http://www.facebook.com/leveldance" target="_blank"> Find us on Facebook!</a> </div> <div style="margin-top: 5px"> <a class="sociables" href="http://www.twitter.com/leveldance" target="_blank"><img src="images/sociables/twitter-icon.png" class="no_border" alt="Follow us on Twitter!"/></a><a class="sidebutton" href="http://www.twitter.com/leveldance" target="_blank"> Follow us on Twitter!</a> </div> <div style="margin-top: 5px"> <a class="sociables" href="http://www.youtube.com/user/leveldancenyc" target="_blank"><img src="images/sociables/youtube-icon.png" class="no_border" alt="See us on YouTube!"/></a><a class="sidebutton" href="http://www.twitter.com/leveldance" target="_blank"> See us on YouTube!</a> </div><br/> </div> <!-- left_col_container end --> Hello there, My index page validates completely since I tidied it up using html tidy, but when i run it through browsershots it is still completely broken in firefox, opera, etc. basically anything other than MSIE it displays incorrectly. If anyone could shed any potential light on the situation it would be greatly appreciated. As you can no doubt tell, I'm no expert on creating web pages using html and css and if a page validates but still doesn't work I can't even begin to try and work out what is going on I did run my css through a validator and it came up with 30 or so instances of the same error, I hadn't ended a dimension value with px, i had just left the number, could this be the culprit? I have since corrected my style sheet so that it validates completely but I cannot upload from my FTP on the PC i'm currently using to see if it affects the browsershots results. I just wanted to put it out there and see what the ideas were of people who know a lot more about website building than I do. Bottom line: if i have an html page and a css page that validate 100% using the w3c standard is it guaranteed to work in all browsers, or are there quirky little things I need to be aware of when wanting my site to display correctly in less popular browsers such as safari etc.? Any feedback is greatly appreciated. :-) Sincere thanks in advance, Alex Browser screenshots - http://browsershots.org/http://www.alexhaines.co.uk/ HTML Validity results - http://validator.w3.org/check?uri=http%3A%2F%2Fwww.alexhaines.co.uk%2Findex.html&charset=%28detect+automatically%29&doctype= Inline&group=0 CSS Validity results - http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.alexhaines.co.uk%2Fstyle.css&profile=css21&usermedium=all&warning=1&l ang=en My site - http://www.alexhaines.co.uk Code: Parse error: syntax error, unexpected T_DNUMBER in /home/a6989956/public_html/include/database.php on line 24 Can anyone please tell me whats wrong? Here is line a few lines Code: class MySQLDB { var $connection; //The MySQL database connection var $num_active_users; //Number of active users viewing site var $num_active_guests; //Number of active guests viewing site var $num_members; //Number of signed-up users /* Note: call getNumMembers() to access $num_members! */ /* Class constructor */ function MySQLDB(){ /* Make connection to database */ $this->connection = mysql_connect(hostname, username, ********) or die(mysql_error()); mysql_select_db(database, $this->connection) or die(mysql_error()); /** * Only query database to find out number of members * when getNumMembers() is called for the first time, * until then, default value set. */ $this->num_members = -1; if(TRACK_VISITORS){ /* Calculate number of users at site */ $this->calcNumActiveUsers(); /* Calculate number of guests at site */ $this->calcNumActiveGuests(); } } line 24-25 is Code: $this->connection = mysql_connect(hostname, username, ********) or die(mysql_error()); mysql_select_db(database, $this->connection) or die(mysql_error()); PLEASE HELP! I'm having an annoying problem that I'm not understanding why it doesn't work. At this point I'm sure it's something simple I'm overlooking. I have a horizontal accordion menu, which is using a UL, now in my Services section of the menu, I have another UL that only shows the first item, and the button that is suppose to be there disappears. According to W3 validation tools, all of my HTML and CSS is error free, so not sure why it's behaving like this. The website is http://dev.jabrowndesigns.com Thanks for any advice. P.S. The menu doesn't work IE for some reason, haven't quite reached it yet as it's not too high on my list at the moment, but if anyone knows off the bat how to fix it, thanks for that too! Hi I just developed a my site called www.365telecom.com in a "Firefox browser" but when I open it up in Internet Explore I get a Stack Overflow at line: 0 Error What do I have to do to make the site run smooth in both browsers????? I am trying to help a friend with his website after his admin left. The site was set up years ago and was never finished. He had a simple web form that would send an email using the code below. The previous guy had the output going to himself and then he would fwd to the sites owner. Strange but not sure why. I just went in to edit the email address, but now I get a "The requested URL /_derived/nortbots.htm was not found on this server." after hitting submit. I googled the error and the only thing I can find is that possibly the original page was created in Frontpage and after opening the file in Notepad++ the file lost some FP attribute. Any ideas what I should try? Thanks Here is the code: <html> <head> <title> Newsletter Registration</title> <meta name="description" content="domain.com" /> <meta http-equiv="Content-type" content="text/html; charset=UTF-8" /> <script src="/resource/js/main.js" type="text/javascript"></script> <link href="/resource/css/main.css" type="text/css" rel="stylesheet" media="all" /> </head> <body onload="initJS();"> <div id="wrapper"> <table id="mainTable" cellspacing="0" cellpadding="0"> <tr id="banner"> <td style="font-family:Arial,sans-serif; color:white; text-align:right; vertical-align:middle; padding:5px 30px 0 0;" colspan="3"> <p style="padding:0; margin:0;"> <!--webbot bot="Include" U-Include="resource/include/quicksearch.html" tag="body" startspan--> <form method=get action="/cgi-bin/listman/exec/search.cgi"> <input type="hidden" name="search" value="1"> <input type="hidden" name="perpage" value="10"> <input type="hidden" name="marknew" value="1"> <input type="hidden" name="euro_numbers" value="0"> <input type="hidden" name="sort_order" value="3,abc,forward" /> CITY <select name="lfield3_match" size="1"> <option value="" selected>Any</option> <option>Affton</option> <option>Woodson Terrace</option> </select> ZIP <input type="text" size="10" name="lfield5_match" /> <input type="submit" value="Quick Search" /> </form> <!--webbot bot="Include" i-checksum="56169" endspan --></p> </td> </tr> <tr id="menu"> <td style="vertical-align:top;" colspan="3"> <map id="menu" name="menu"> <area shape="rect"#Home coords="32,4,94,24" href="/index.html" title="Home" /> <area shape="rect"#List Properties coords="151,3,292,26" href="/cgi-bin/listman/exec/search.cgi" title="List Properties" /> <area shape="rect"#Rentals coords="360,4,429,25" href="/rentals.html" title="Rentals" /> <area shape="rect" coords="491,3,604,25" href="./contactus.html" title="Contact Us" /> <area shape="rect"#About Us coords="673,3,773,25" href="/aboutus.html" title="About Us" /> <area shape="rect"#Benjy's Ads coords="832,4,946,26" href="/domain.html" title="Benjy's Ads" /> <area shape="default" nohref="nohref" alt="" /> </map> <img usemap="#menu" style="width:974px; height:30px; padding-bottom:15px; border:0;" src="./resource/image/menu.jpg" title="Home" /> </td> </tr> <tr> <td style="width:30px; height:100%; background:#3300cc url('/resource/image/shadowleft.jpg') repeat-y top left; vertical-align:top; text-align:right"> <div style="height:100%; background:url('/resource/image/bgbottomleftcol.jpg') no-repeat bottom left;"> </div> </td> <td style="width:941px; vertical-align:top;"> <div id="content" style="height:100px; border:1px solid black; overflow:auto; padding:15px; background-color:white;"> <div style="border:1px solid black; background-color:lightgrey;"> <h2 style="padding:5px; margin:0;">Benjys Newsletter Registration</h2> </div> <ul> <li>New Properties "<font color="#0000FF">Last Seven Days</font>", </li> <li>New Properties "<font color="#0000FF">Last 30 Days</font>", and </li> <li>A Complete Listing of all Properties</li> </ul> <p align="center"><font color="#0000FF"><b>To join the Newsletter, just enter the following information below.</b></font></p> <form method="POST" name="registration" action="_derived/nortbots.htm" webbot-action="--WEBBOT-SELF--" onSubmit="location.href='_derived/nortbots.htm';return false;" webbot-onSubmit=""> <!--webbot bot="SaveResults" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/PRE" S-Email-Address="sander.liebert@gmail.com" B-Email-Label-Fields="TRUE" B-Email-Subject-From-Field="FALSE" S-Email-Subject="Info - Benjy's Newsletter Registration Page" S-Builtin-Fields startspan --><input NAME="VTI-GROUP" TYPE="hidden" VALUE="0"><!--webbot bot="SaveResults" endspan i-checksum="37496" --> <div align="center"> <table border="0" width="86%" id="table1"> <tr> <td width="211" align="center">First Name<br> <input type="text" name="First" size="20" style="border: 1px solid #0000FF; background-color:#CCFFFF"> </td> <td width="258" align="center">Last Name<br> <input type="text" name="Last" size="25" style="border: 1px solid #0000FF; background-color:#CCFFFF"> </td> <td align="center">Email Address<br> <input type="text" name="Email" size="40" style="border: 1px solid #0000FF; background-color:#CCFFFF"></td> </tr> <tr> <td width="211"> </td> <td width="258"> </td> <td> </td> </tr> </table> </div> <p align="center"> <input type="submit" value="Submit" name="B1" style="border: 1px solid #0000FF"> <input type="reset" value="Reset" name="B2" style="border: 1px solid #0000FF"></p> </form> </div> </td> <td style="width:30px; height:100%; background:#3300cc url('/resource/image/shadowright.jpg') repeat-y top right; vertical-align:top"> <div style="height:100%; background:url('/resource/image/bgbottomrightcol.jpg') no-repeat bottom right;"> </div> </td> </tr> </table> </div> </body> </html> Hey, I'm new to this but am trying to upload a web photo gallery that I created with Adobe Lightroom. The program creates the index and all necc. files for the webpage. I uploaded these files and am coming up with this error on my domain (www.scottrlacy.com): Parse error: syntax error, unexpected T_STRING in /home/www/scottrlacy.com/index.html on line 1 I know it must mean that something is wrong with my 1st line of my index. Here are the first 10 lines for your reference. Any help is greatly apprediated <?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>www.scottrlacy.com</title> <style type="text/css"> body,html { margin-top:0; My website used to work properly but now, the portion that lets people travel into the different portion of the site does not appear anymore on Internet Explorer 8.0.7600? When editing with my PHP tool, it works. When using Google Chrome it works also. Therefore, I would say it is a technicality between the version of Explorer. Where or how can I check this. www.automatisationajp.com Thank you in advance for your help. stay1001 |