HTML - Having Problems With Html Images.
Hi!
I'm pretty new to html, I'm trying to build my own fairly simple website using 123 reg Instant site and I want to make it from scratch with my own banners and buttons etc. I've been playing around putting some images up on the webpage, but I'm having problems getting the images to stay put, they move around when the browser window gets made smaller/bigger. heres the link to the website http://handbagshandbagshandbags.co.uk/ Any help would be really appreciated! Similar TutorialsHey everyone, im new to this site and am hoping that someone on here can help me with this small but annoying problem I have been having. I am designing my first java script site for a friend, and am really happy with the design. However when the site is viewed in Internet Explorer the background image for the header lock onto the page instead of aligning to middle. See it for yourself here. I dont want to have to redesign the layout, but im not happy with leaving that problem as it looks really unprofessional for a business site. I am relatively new to this, but am a quick learner, just hoping someone can help push me in the right direction. Thanks for any help you can offer. Josh Hello, i'm having a problems of HTML layout on my website, anyway out there can helps me? i don't know how to uploaded images to show you guys but i already post it in my new blog i wish all of you can login and have a look on my problems.http://dubspro.blogspot.com/ Below is my coding i wish u guys can help me out thank you. <body> <table width="100%" cellpadding="" cellspacing="" border="0"> <tr> <td width="50%"> </td> <td> <table cellpadding="" cellspacing=""> <tr> <td colspan="3"> <img src="Final Year Project/heading.jpg" width="780" height="52" /></td> </tr> <tr> <td> <img src="Final Year Project/heading1.jpg" /></td> <td> <img src="Final Year Project/heading2.jpg" /></td> <td> <img src="Final Year Project/heading3.jpg" /></td> </tr> <tr> <td colspan="3"><img src="Final Year Project/heading4.jpg" /></td> </tr> <tr> <td colspan="3" > <table cellpadding="0" cellspacing="0" border="0"> <tr> <td><img src="Final Year Project/heading5.jpg" /> </td> <td><img src="Final Year Project/button1.jpg" /> </td> <td><img src="Final Year Project/heading6.jpg" /> </td> <td><img src="Final Year Project/button2.jpg" /> </td> <td><img src="Final Year Project/heading7.jpg" /> </td> <td><img src="Final Year Project/button3.jpg" /> </td> <td><img src="Final Year Project/heading8.jpg" /> </td> <td><img src="Final Year Project/button4.jpg" /> </td> <td><img src="Final Year Project/heading9.jpg" /> </td> <td><img src="Final Year Project/button5.jpg" /> </td> <td><img src="Final Year Project/heading10.jpg" /> </td> <td><img src="Final Year Project/button6.jpg" /> </td> <td><img src="Final Year Project/heading11.jpg" /> </td> </tr> </table> </td> </tr> <tr> <td colspan="13" b><img src="Final Year Project/heading12.jpg" /> </td> </tr> </table> </td> <td width="50%"> </td> </tr> </table> </body> </html> I am new to html, and I am trying to add images, this is what I have been typing to get my img, but i doesn't work. <body> <img src="imagename.jpg"> </body> the web browser knows there is supposed to be an image but it broken picture image where the picture is supposed to be. Anybody know what I am doing wrong, i have tried loading it on both firefox and IE. thanks for your help in advance ok i know i just made a thread very similiar to this one, and yet it isnt. i found this new code on a site and i want to use it. i have added my own banner, my own buttons and now i want the the button to link to the "Content goes here" place. which seems impossible for me! i can only make the links open up a new window, cant make it open up on same page in the spare fields of the design. any help is appreciated. the reason i change to this is that this should be better for more browsers than the other design i hade picked first. <html> <table cellspacing="1" cellpadding="0" border="0" bgcolor="black" id="shell" height="250" width="400"> <tr height="50"><td colspan="2" bgcolor="white"> <table title="Banner" id="banner" border="0"> <tr><td><img src="banner.gif" width="600" height="200"></td></tr> </table> </td></tr> <tr height="400"><td bgcolor="white"> <table id="navigation" title="Navigation" border="0"> <tr><td><a href="home.htm" target="content"><img border="0" src="homeknap.gif" width="80" height="21"></a></td></tr> <tr><td><a href="about.htm" target="content"><img border="0" src="joinusknap.gif" width="80" height="21"></a></td></tr> <tr><td><a href="join.htm" target="content"><img border="0" src="aboutknap.gif" width="80" height="21"></a></td></tr> </table> </td><td bgcolor="white"> <table title="Content" id="content" border="0"> <tr><td>Content goes here</td></tr> </table> </td></tr></table> </html> Hi Team, I'm having problems formatting images in HTML. Here is my site: http://ledtvprices.org.uk/ I would like to "left align" the merchant logo buttons at the top so that they all sit above the H1 Tag and start from the left to the right, rather than the middle of the page. I'd also like to left align all the tv images and space them all out evenly. How do I achieve this in HTML? Thanks. Sunil. Reply With Quote Hello members of HTML forum. I'm having some troubles with some HTML. I want to remove the space between 2 images, but if I remove to <p> tag, the website will just become chaos. The area I want to remove: Source: Quote: <body bgcolor="black"> <center> <img alt="Diablo" src="image1.jpg"><a href="http://adscendmedia.com"><img src="image2.jpg" alt="Download" /></a><img alt="Diablo" src="image3.jpg"> <p> <img alt="Diablo" src="frame1.jpg"><iframe width="822" height="536" src="http://www.youtube.com/embed/f_k9vL18YCQ" frameborder="0" allowfullscreen></iframe><img alt="Diablo" src="frame2.jpg"> <img alt="Diablo" src="image4.jpg"> Does anyone know how to fix this problem? Thanks hi i got a problem on my website.. coz when i browse my site using mozilla firefox it all happens ok.. all the buttons were ok. it displayed sumthin on the iframe.. but when i uses the IE7 i found out that theres no display on the frame when i click the home button.. please help.. i check the source but i didnt find any problem. help me.. heres the site please check it.. http://www.radissonagro.com I'm trying to modify my template on my website - as I've found one I want to use as a base (It's open source, and we've got permission to edit it), but I don't understand a word of what is in the HTML as most of it is PHP, with maybe the odd div container thrown in. If you visit the site, he www.omgpcgames.com, all I want to do is stretch that header out across the top, instead of being a small image on the right hand side. I'm aware this will involve re-ordering modules, so I'm not overly sure about what I am doing. If anyone can make any sense out of this, please can you give me a pointer in the right direction? HTML Code: * You can use and modify this template any way you like, but it would be * kind to have a link back to www.gameon.be, doesn't matter how/where... */ defined( '_JEXEC' ) or die( 'Restricted access' ); ?> <!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" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>"> <head> <jdoc:include type="head" /> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" /> <!--[if IE 7]> <style type="text/css">.vertmenu li ul { float: left; position: relative; bottom: 15px; }</style> <![endif]--> <!-- IE 7 fix for vertical header menu; I think FF 2 also needs this, but since I don't use this and don't like hacks... --> <!--[if IE 6]> <style type="text/css">.popular { position: relative; bottom: 99px; }</style> <![endif]--> <!-- IE 6 fix for user4, which needs to be on same height as user3 --> </head> <body> <!-- header --> <div class="header"> <!-- user1 (fex: menu (enable 'always show submenu items')) --> <?php if ($this->countModules('user1')) : ?> <div class="<?php echo $this->params->get('gomenuType'); ?>"> <!-- horizontal of vertical (left/right) --> <jdoc:include type="modules" name="user1" style="xhtml" /> </div> <?php endif; ?> <!-- user2 (fex: banner) --> <?php if ($this->countModules('user2')) : ?> <div class="banner"> <jdoc:include type="modules" name="user2" style="xhtml" /> </div> <?php endif; ?> </div> <!-- content --> <div class="contentcontainer"> <!-- left column --> <?php if ($this->countModules('left')) : ?> <div class="containerleft"> <!-- title (set in template menu) --> <div class="titlecontainer"><?php echo $this->params->get('leftMenuTitle'); ?></div> <!-- show content set to left --> <div class="stylemenu"> <jdoc:include type="modules" name="left" style="xhtml" /> </div> </div> <?php endif; ?> <!-- right column --> <?php if ($this->countModules('right')) : ?> <div class="containerright"> <!-- title (set in template menu) --> <div class="titlecontainer"><?php echo $this->params->get('rightMenuTitle'); ?></div> <!-- show content set to right --> <div class="stylemenu"> <jdoc:include type="modules" name="right" style="xhtml" /> </div> </div> <?php endif; ?> <!-- middle column: size of middle column depends on the use of left/right columns --> <div class="containermiddle_<?php echo $this->countModules('left')>0; ?>_<?php echo $this->countModules('right')>0; ?>"> <!-- title (set in template menu) --> <div class="titlecontainer"> <?php if ($this->params->get('middleMenu')=='breadcrumbs') { ?> <jdoc:include type="modules" name="breadcrumbs" style="xhtml" /> <?php } else { echo $this->params->get('middleMenuTitle'); } ?> </div> <?php if ($this->countModules('user3 or user4')) : ?> <div class="containerlatestpopular"> <!-- user3 (fex: latest articles) --> <?php if ($this->countModules('user3')) : ?> <div class="latest"> <jdoc:include type="modules" name="user3" style="xhtml" /> </div> <?php endif; ?> <!-- user4 (fex: most read articles) --> <?php if ($this->countModules('user4')) : ?> <div class="popular"> <jdoc:include type="modules" name="user4" style="xhtml" /> </div> <?php endif; ?> </div> <?php endif; ?> <!-- user5 (fex: newsflash) --> <?php if ($this->countModules('user5')) : ?> <div class="newsflash"> <jdoc:include type="modules" name="user5" style="xhtml" /> </div> <?php endif; ?> <!-- show articles --> <jdoc:include type="component" style="xhtml" /> <!-- footer --> <div class="footer"> <span>template by<a href="http://www.gameon.be" target="_blank">www.gameon.be</a></span> <?php if ($this->countModules('footer')) : ?> <jdoc:include type="modules" name="footer" style="xhtml" /> <?php endif; ?> </div> </div> </div> </body> </html> hi, i want to create a page where in my background image has a shaded blue image with a boy jumping on the left side of it, I want to extend the image to the whole of the browser but it is not, please help it is very urgent. Hi Iam a beginner in html and need help inserting an image in the header. Iam trying to insert an image in the header and it is taking lot of space than it should which looks awkward on my webpage with the white space can someone help to insert the image exactlyso that it does not use that extra space Hi guys, I've created an advert with some affiliate links in that I want to display on my main pages of my website. I have only fairly recently jumped into the world of web design/development so I've probably not made the most efficient page. The advert is layed out inside a table that is 4 columns and 2 rows and everything seems fine when I view that page. Except, when I put this page into my main pages (via an iframe) it shows nearly correctly, but the alignment is slightly off: the second column in is a few pixels down than the others. I have checked the coding over and over to no avail. Is there maybe a reason for this? Or some tips that you could give? I did try yesterday by just copying and pasting the code directly from the advert page to the main pages which require them - but that's a whole new can of worms! The alignment of that attempt was beyond a joke (even then I couldn't work it out...). Many thanks in advance for your ideas. Hi guys, my name is Paolo and I'm newbie I don't speak English very well because my native language is Italian (I live in Switzerland, so..). This is my Menu HTML code: PHP Code: <div id="telefilm-menu"> <ul> <li class="first"></a> <li><a href="http://www.telefilmnetwork.com/greek/" class="right current">Sommario</a></li> <li><a href="http://www.telefilmnetwork.com/greek/news/" class="right">News</a></li> <li><span class="right">Episodi</span></li> <li><span class="right">Cast</span></li> <li><span class="right">Immagini</span></li> <li><span class="right">Video</span></li> <li><span class="right">Musica</span></li> <li><span class="right">DVD</span></li> <li><span class="right">Extra</span></li> <li><span>Forum</span></li> <li class="last"></a> </ul> </div> The CSS style: PHP Code: #telefilm-menu { margin: 124px 0 0 10px; font-weight: bold; } #telefilm-menu li.first { width: 10px; height: 36px; background: url("telefilmenu-sx.gif") no-repeat top left; padding: 0; } #telefilm-menu li.last { width: 10px; height: 36px; background: url("telefilmenu-rx.gif") no-repeat top left; padding: 0; } #telefilm-menu ul{ margin:0; padding:0; list-style-type:none; width:auto; float:left; height: 36px; } #telefilm-menu ul li{ display:block; float:left; margin:0; background: url("telefilmenu.gif") repeat-x top left; color:#cccccc; text-decoration:none; line-height: 36px; vertical-align: middle; padding: 0 5px 0; } #telefilm-menu ul li span.right{ background: url("telefilmenu-border.gif") no-repeat bottom right; display:block; line-height: 36px; padding-right: 10px; } #telefilm-menu ul li a{ display:block; float:left; color:#000000; text-decoration:none; line-height: 36px; vertical-align: middle; padding: 0 8px 0 8px; } #telefilm-menu ul li a.right{ background: url("telefilmenu-border.gif") no-repeat bottom right; display:block; line-height: 36px; padding-right: 10px; padding-left: 10px; } #telefilm-menu ul li a.current{ display:block; float:left; color:#ffffff; text-decoration:none; line-height: 36px; vertical-align: middle; background: #006f9f; } #telefilm-menu ul li a.current:hover{ color:#ffffff; text-decoration:none; } #telefilm-menu ul li a:hover{ color: #000000; text-decoration: underline; That's what appear: The problem is that when there is the blue background (as color, not image), the "bar" on the right doesn't appear because is also as background.. I would like to get this: I don't really know how to do that...Can anybody help me please? Thanks in advance, Paolo. PS: sorry for the time, but where I live it 's midday Hi, I want to load a text file into HTML textarea, edit it and later save it. the following form fails to show the text a simple text file - 1.txt. ----- <html> <script> function saveFile (fname) { document.execCommand('SaveAs',null,fname) } function displayFile (text) { document.formName.file.value = text; } </script> <body> <form name="form1" method="post" action=""> <label>edit this file: <textarea name="textarea" rows="10" cols="50">displayfile("1.txt")</textarea> </label> <input type="button" value="Save" onClick="saveFile('1.txt');"> </form> </body> </html> ------ Okay so i was trying to do a site using photoshop then dreamweaver but it always messed up during the coding. So a nice fella here in htmlforums told me to try tables so okay i tried it and well it worked out really well for the most part. but it's just that it is my first time trying tables and this is what i want http://www.og-guild.com/ and this is what i currently have www.da-nexgen.com dont think im stealing their stuff it's a commonly used layout for guild websites. But in my site you can see things are not really all set fine for example my navigation menu has spaces between them when hey should be real close together. and the biggest problem i have is that i want to have all the site stuff in the middle in 800w and the outer background a different color sort of like the one in og-guild.com. can you guys please help me This is a table related issue. Is it possible to have one long row for your first row and then have 2 small columns on the 2nd row? I tried
Code: <table border="1" align=center cellspacing="1"> <tr><td background="./images/topbanner.gif" width="512" height="22"></td></tr> <tr><td bgcolor="#0099FF" width="22" height="22"></td><td> </td></tr> </table> And that didn't appear to work..it makes another column on the first row.. Hello all. Im totally green and just started last night on making a website. i am at the moment trying te make a nice layout but cant get the links in my menu bar to open up in the content table. can someone plz help me out?!? this is my code so far: index.htm <html><head></head> <frameset rows="20%,*"> <frame name="title" src="banner.gif"> <frameset cols="30%,*"> <frame name="menu" src="menu.htm"> <name="content" src="content.htm"> </frameset> </html> menu.htm <html> <head> <title>Frame Menu</title> <base target="content"> </head> <body bgcolor="#0099DD"> <tr><td><a href="content1.htm"><img border="0" src="homeknap.gif" width="80" height="21"></a></td></tr> <tr><td><a href="content2.htm"><img border="0" src="aboutknap.gif" width="80" height="21"></a></td></tr> <tr><td><a href="content3.htm"><img border="0" src="joinusknap.gif" width="80" height="21"></a></td></tr> <tr><td><a href="content4.htm"><img border="0" src="contactknap.gif" width="80" height="21"></a></td></tr> </body> </html> content.htm <html><head> <base target="content"> </head> ... </html> i can only get it to open my buttons in new windows, not on the main page as i want.... plz help me out. My site is not on the internet yet and wont be before its done sometime in the future. hope someone can help me out! Hello, I'm creating my very first website, using notepad. For some reason my images do not display in Firefox, and in Internet Explorer the middle column is pushed way down into the page but the images DO display. My website seems to work just fine in Chrome and Safari. Can anyone take a look at the code and tell me what I did wrong? http://www.moorestock.com Thank you Hi I'm new to this site and I'm having trouble trying to validate my page, I keep getting multiple errors and I'm out of ideas...can somebody help please. Thanks I keep getting these sort of errors: Line 37, Column 9: end tag for element "br" which is not open <tr></br> Line 27, Column 5: XML Parsing Error: Opening and ending tag mismatch: body line 16 and br </br> Line 37, Column 9: XML Parsing Error: Opening and ending tag mismatch: tr line 37 and br <tr></br> Line 54, Column 18: XML Parsing Error: Opening and ending tag mismatch: div line 38 and td </div> </td></tr> HTML Code: <?xml version="1.0" encoding="UTF-8"?> <!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" > <head> <title>Megan Fox</title> <meta name="Author" content="Jean Paras" /> <meta name="Keywords" content="Megan Fox, Jennifer's Body, Article" /> <meta name="Description" content="A website for my courswork which is based on a Megan Fox article" /> <link href="mainstyle.css" rel="stylesheet" type="text/css"/> <style type="text/css"> </style> </head> <body> <table border= "15" width = "800" > <tr><td><div class="navigation"> <a href="index.html">MAIN</a> | <a href="meganfox.html">MEGAN FOX</a> | <a href="morefox.html">MORE ON FOX</a> | <a href="gallery.html">GALLERY</a> | <a href="links.html">USEFUL LINKS</a> | </div> </td></tr> </table></br> <table border= "15" width = "800" ><tr> <td><h1>MEGAN FOX</h1></td> </tr><tr> <td><a href="meganfox.html"><img src="megan-fox.jpg" alt="Go To Article" /></a> </td></tr> </table> <table border= "15" width = "800" > <tr></br> <td><div class="navigation"> <a href="index.html">MAIN</a> | <a href="meganfox.html">MEGAN FOX</a> | <a href="morefox.html">MORE ON FOX</a> | <a href="gallery.html">GALLERY</a> | <a href="links.html">USEFUL LINKS</a> | <div id="footer"> <p id="footer-copyright"> ©2009. All Rights Reserved. <br id="footer-neado"/> Article/Images Provided By: <a href="http://www.totalfilm.com/">Total Film Magazine</a><br /> <a href="http://jigsaw.w3.org/css-validator/check/referer"> <img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" /></a></p> </div></td></tr> </table> </body> </html> Hi, and thanks in advance for those who have a look at this issue. As an amateur webmaster, this question may seem extremely simple, but after working on it a while I have not been able to make it work. What I have is a solid bar running down the left side of the page, and I only want it to take up 20% of the page, I would like to then create the main page contents to the right of that bar taking up the remaining 80% with a white background. I was able to get the table set up for the side bar, but could not seem to start another one for the rest of the page. Like I said, this is an amateur speaking, so the answer may be very simple. Here is the html I have written so far: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <style href>a {text-decoration: none} </style> <title></title> <body bgcolor="#FFFFFF" text="#000000" link="#D8F0E3" vlink="#246B44" alink="#9ED9B8" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <style type="text/css"> body {text-align: left; } </style> <table width="20%" border="0" cellspacing="0" cellpadding="10" height="3" bgcolor="#006699"> <td align="center" valign="middle"> <font face="Verdana" size="4" color="#FFFFFF">Round Table Quotes Association <br> <style type="text/css"> body {text-align: left; } </style> </head> <br> <font face="Verdana" size="2"><a href="about.html" target="_blank">About</a><br><br> <font face="Verdana" size="2"><a href="cv.html" target="_blank">Authors Index</a><br><br> <font face="Verdana" size="2"><a href="submit.html" target="_blank">Submissions</a><br><br> <font face="Verdana" size="3" color="#FFFFFF">Table of Contents<br><br></font> Can someone tell me the code I will need to created the field to the right of the bar which will be inline with the bar and its contents, but filling up the remainder 80% of the page? Thanks so much, htmldad |