pqb
-
Posts
13 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by pqb
-
-
Right. I've removed the size parameters, and the page still looks OK. Still a mystery why the page did not display the photos when I used height. Anyway, problem solved for these pages and validation.Thanks.You might be able to change the percent, im not sure, try it. No I am saying that you can use either width or height, because it will keep the aspect ratio. Only unless you want to change the aspect ratio, do you use both. And no, the size parameter can go in any order, and wherever, as long as they are insde the < >. -
Do the size parameters have to go in front of the image source tag? Does it have to be in pixels? % is much easier. Counting pixels is not my idea of fun!Presumably if you wish to change the aspect ratio, then both height and width can be used to do this?When changing the size of an image use this code:<img height="pixels" width="pixels" src="mypic.gif">You can use either height or width, because it keeps the same aspect ratio, but you can use both if you like. -
I validated pages with photos, displayed in tables. Each photo is set to display at a certain size, with width and height specified. The height was controlled by the <size> tag (forgotten where I got that from) and it worked, but the w3c validator said it was wrong. i substituted <height>, but then the pictures did not show.What should it be?eg of code, which displays rows of three photos, with popups of larger versions if user clicks on them:<table><tr> <td align="center"><a href="popupbasic.html" onClick="return popup('Cards/Greetings_lg/HPIM2380.jpg')"><img src="Cards/Greetings_sm/HPIM2380.jpg" size="100%" width="100%" alt="picture of card"></a></td><td align="center"><a href="popupbasic.html" onClick="return popup('Cards/Greetings_lg/HPIM2381.jpg')"><img src="Cards/Greetings_sm/HPIM2381.jpg" size="75%" width="75%" alt="picture of card"></a></td><td align="center"><a href="popupbasic.html" onClick="return popup('Cards/Greetings_lg/HPIM2382.jpg')"><img src="Cards/Greetings_sm/HPIM2382.jpg" size="75%" width="75%" alt="picture of card"></a></td></tr><tr><td><a href="#topofpage">Go to top</a></td></tr>
-
This code is fine, he is just nesting tables. He closes every table he opens, he just left out some tr tags. I put the added tags in bold:This fixed it, and it validated. I was forgetting that of course the nested table is in a parent table's cell.Thanks very much; I appreciate your help.
-
Yes, thanks for your help. What mystified me was that I knew the table tags were not quite right, but if I removed one that I thought shouldn't be there the page was formatted differently, and not how I wanted it at all.I have taken two screenshots to show the entire page.http://www.annablackburn.com/pqb1.tiffhttp://www.annablackburn.com/pqb2.tiffMany thanks.pqb, could you post a picture of what exactly you want? Then we can look what your code should be. -
Just some tips on coding HTML, when opening a code you always need to close it in the right order, for example:Thanks very much. Yes, I couldn't understand why it looked OK in the browser, when it clearly wasn't logical, and the validator only picked up on <tr> tags. Perhaps just a degree of tolerance by the browsers. (I had missed the extra <table> tag when I checked through.)
-
The following code generated 2 errors when validated. I don't understand the errors, nor do I understand why the code works, when there is an extra </table> tag without another <table> to open the next section. It displays correctly in several different browsers I have tested it with. Most grateful for any ideas. URL of page is: http://www.annablackburn.comThe errors were:Error Line 36 column 3: start tag for "TR" omitted, but its declaration does not permit this.<td><img src="Pictures/cover.jpg" width="250" height="400" alt="cover picture"><?Error Line 55 column 3: start tag for "TR" omitted, but its declaration does not permit this.<td><img src="Pictures/HPIM2465.jpg" width="350" height="250" alt="example card"?My code:<table cellspacing="5" cellpadding="20" border="0"><tr><td width="55%"> <h1>Anna Blackburn</h1><p> <h2>Bespoke Dressmaking & Tailoring</h2><p></td><td rowspan="4" width="45%"> <table cellspacing="5" cellpadding="20" border="12"><td><img src="Pictures/cover.jpg" width="250" height="400" alt="cover picture"></td></tr></table><tr><td width="35%" rowspan="5"><h3>Wedding & Evening Dresses a speciality</h3><p>Other clothes also made to measure, either from client's own scheme, or after consultation with our design expert.</p></td></tr></table><table cellspacing="5" cellpadding="20" border="0"><tr><td width="55%"><h2>Handmade Cards for Various Occasions</h2><p></td><td rowspan="4" width="45%"> <table cellspacing="5" cellpadding="20" border="12"><td><img src="Pictures/HPIM2465.jpg" width="350" height="250" alt="example card"></td></table></td></tr><tr><td width="35%" rowspan="5"><p>Click on <a href="#topofpage">menu</a> to view different categories.</p></td></tr></table>
For what do you use IE?
in HTML/XHTML
Posted