This is a discussion on "CSS IMG gap issue" within the Web Page Design section. This forum, and the thread "CSS IMG gap issue are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
CSS IMG gap issue
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
CSS IMG gap issue
I'm sure the necessary change for this is something fundamental, primarily because I'm new to using <span> and <div> markups. The following page:
http://www.drinkingauthority.com/DA2 . . .has the following issue: the title banner and menu bar have 4 pixel gap at the bottom. This isn't matching up with how I believe the CSS is supposed to be represented client-side. Below you will find the portion of the .php page and the entire CSS. (For those of you unfamiliar with .php, the .php snippet you see simply creates an IMG tag with a random number 1 or 2 in a portion of the address. Real simple.) Any idea how I could tighten up the format and get rid of that 4 pixel gap?? ===== Start .php partial code ===== <div class=banner> <?php echo "<img src=\"http://www.drinkingauthority.com/DA2/img/IMG_banner"; echo rand(1,2); echo ".gif\" border=\"0\">"; ?> </div> <div class=main_menu> ![]() </div> ===== End .php partial code ===== ===== Start CSS code ===== BODY { background-color: white } .banner { width: 740; height: 100; border: solid black 2px; margin-bottom: 10px; } .main_menu { width: 740; border: solid black 2px; margin-bottom: 10px; } .user_interface { width: 150; margin-right: 10px; verticle-align: top; background-image: url(http://www.drinkingauthority.com/DA2..._BG_menu_l.gif); vertical-align: top } .main_content { width: 420; margin-right: 10px; background-image: url(http://www.drinkingauthority.com/DA2...MG_BG_main.gif); vertical-align: top } .context_menu { width: 150; background-image: url(http://www.drinkingauthority.com/DA2..._BG_menu_r.gif); vertical-align: top } ===== End CSS code ===== |
|
|
|
|||
|
try closing the gap after the image...
|
![]() |
| Tags |
| css, img, gap, issue |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| JS issue | acrikey | JavaScript Forum | 6 | Jul 25th, 2007 17:45 |
| Issue in IE6 | aholmes | Web Page Design | 7 | Jul 13th, 2007 10:00 |
| CSS issue in IE7 | bluetech | Web Page Design | 6 | Jul 3rd, 2007 15:36 |
| Help Odd Issue? | drappendix | Web Page Design | 8 | Aug 9th, 2006 17:53 |
| IE issue | Pheonix | Web Page Design | 2 | Dec 2nd, 2005 21:58 |