Jump to content

holmedwa04

Members
  • Posts

    743
  • Joined

  • Last visited

Posts posted by holmedwa04

  1. You can put the PDF in an iframe but it is still opened with Acrobat Reader....PDF requires a third-party reader to open.No way around it.
    Oh right, in that case do you know how to customise certain sides of a cell in a table, as I am trying to make some online Sudokus?
  2. Hi, does anyone know how to make a PDF document actually show when you click a link, without opening Adobe Reader. Just show it in the same browser window?

  3. looking for a tip on how this guys custom scroll bar was made? i looked at the source code and i'm assuming it has to do with the SPAN tag somehow, anyone know an easy way to do this for a slightly amateur coder? maybe point to a tute or something?
    You could use this, but this doesn't allow you to use pictures, it just allows you to change the colours. And also it only works in IE apperently?
    body { scrollbar-3dlight-color:#000000; scrollbar-arrow-color:#FFFFFF; scrollbar-base-color:#000033; scrollbar-darkshadow-color:#000000; scrollbar-face-color:#000066;scrollbar-track-color:#000099; scrollbar-shadow-color:#000033; }

  4. Left middle alignment is actually the default for a table. If you're ever in doubt, put a border around the image to be able to see for sure how big the gutters are.
    I though valign was usually in the middle, but when the images were not linked, it showed the little crosses, and I thought that they might be in the middle, but they were not. Anyway I have fixed it now, and the slight problem with the colours is fixed now aswell.
  5. Yea, I fixed it. It was just a brain dead moment where I didn't see the very simple problem. heh. There were a couple nbsp;'s out of place.
    I thought it might have been something like that, but im really sorry, I couldn't be bothered to check all of the codes! :)
  6. If you would use msPaint, you can't check what hexcode a certain color is, unfortunately. Other programs though. But with paint you do can check what RGB() value you could use, those are also allowed online. So you would not need to download a certain program to check a color to match backgrounds, paint can do it already :)
    The colour chart I have has the RGB values aswell so, yeh thanks
  7. try changing your background color to#C0C0C0I took a screenshot, and that is the color that is in the image.
    Yeh, that has worked thanks!
    The image editor is probably only saving a limited number of colors, or it is using a websafe palette or something like that. That image is 650x650 and saved as a gif, which only supports 256 colors, so it might be approximating. But there is probably a setting in your image editing program to choose which palette to use when exporting. What program are you using?
    Yeh probally, but Cronthenoob has fixed it for me. I thought CCCCCC was part of the 256 colours anyway?
  8. 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.
    No problem, im always willing to help, and estatic (well maybe not, wrong word) when I have actually helped someone! :)
  9. <td valign="middle">Should vertically center everything in that cell.Don't know why its not working :)
    No, it stiill doesn't seem to be working, is it because I am using align="center" aswell? Here is the code:
    <table border="1" width="100%"><tr><td align="center" valign="middle"><img src="logos/25translogo.gif"></td><td><img src="logos/40translogo.gif"></td><td><img src="logos/50translogo.gif"></td><td><img src="logos/60translogo.gif"></td></tr><tr><td bgcolor="gray"><img src="logos/25greylogo.gif"></td><td bgcolor="gray"><img src="logos/40greylogo.gif"></td><td bgcolor="gray"><img src="logos/50greylogo.gif"></td><td bgcolor="gray"><img src="logos/60greylogo.gif"></td></tr><tr><td bgcolor="black"><img src="logos/25blacklogo.gif"></td><td bgcolor="black"><img src="logos/40blacklogo.gif"></td><td bgcolor="black"><img src="logos/50blacklogo.gif"></td><td bgcolor="black"><img src="logos/60blacklogo.gif"></td></tr></table>

  10. in the <td> tag you should just be able to putvalign="top" valign="botton"orvalign="middle"Edit: accidently put center instead of middle.
    It doesn't seem to vertically center the image, is it because is is part of a link?
  11. 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?
    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 < >.
  12. 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>
    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.
  13. Now, I know this sounds stupid, but I can't seem to valign an iamge in a table, this is the code:<table><tr><td align="center"><a href="mysite.html"><img src="mypic.gif"></a></td></tr></table>Can anyone help, I have already done the align one, just the valign im having trouble with.

×
×
  • Create New...