Jump to content
Killersites Forums

tinman

Member
  • Posts

    6
  • Joined

  • Last visited

tinman's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. So far I have gotten the background image to generate as randomly as i want but i cant seem to get text to show up. This is my code: $im = imagecreate(400, 30); $white = imagecolorallocate($im, 255, 0, 0); $black = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 399, 29, $white); $text = 'Testing...'; $font = 'arial.ttf'; imagettftext($im, 20, 0, 10, 20, $black, $font, $text); imagepng($im); imagedestroy($im); but when I try to load it, no text appears. Do I need to incorporate my own font file into it? If so how do i do that? Or is it something even more simple that I have missed? Thank you for your time and assistance.
  2. Classes worked. Thank you. For some reason I had it in my mind that I couldn't use classes because it was a hover pseudo-class.
  3. I am creating a dropdown for a site, but cant seem to get it so only a few of the list items are effected by a certain effect. Here is a much shorter example of what my coding will look like. <html> <head> <style type="text/css"> li:first-child { background:yellow; } </style> </head> <body> <ul> <li><a href="#">Coffee</a> <ul> <li><a href="#">fdas</a></li> <li><a href="#">fdas</a></li> </ul> </li> <li><a href="#">Tea</a></li> <li><a href="#">Coca Cola</a></li> </ul> </body> </html> I am trying to make it so only Coffee, Tea, and Coca Cola are highlighted. while fdas isn't. Thank you for your time and consideration
  4. Thank you, you have been incredibly helpful, I think I'll be spending a lot of time on this forum.
  5. Using tables is outdated? should i use divs or canvas instead? edit: are you talking about using css reset?
  6. I wrote the following code <style type="text/css"> .tbgen { border:4px solid #B88A00; padding:10px 10px; background:#FFFFE5; border-radius:15px; -moz-border-radius:15px; } h4 { margin-bottom: -10px; margin-top:0cm; } </style> </head> <body bgcolor="EBB000"> <table cellpadding="0" cellspacing="10"> <tr> <td> a </td> <td> b </td> </tr> <tr> <td> <div class="tbgen"> c </div> </td> <td rowspan="4"> <div class="tbgen" style="min-height:2000px"> d </div> </td> <tr> <td> <div class="tbgen"> e </div> </td> </tr> <tr> <td> <div class="tbgen"> f </div> </td> </tr> <tr> <td> <div class="tbgen"> g </div> </td> </tr> </tr> </table> and have done what I can think of to get rid of the spacing above and below the cells in column 1 but in chrome cell g is off by itself and in firefox column 1 spaces all cells equally in respect to the current size of column 2. Could anyone please assist me with my problem? Thank you for your time and consideration.
×
×
  • Create New...