CSS IMG gap issue

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 16th, 2005, 15:45
New Member
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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 =====

  #2 (permalink)  
Old May 16th, 2005, 17:46
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
try closing the gap after the image...

Code: Select all
[img]http://www.drinkingauthority.com/DA2/img/IMG_BG_menu_t.jpg[/img]</div>
Closed Thread

Tags
css, img, gap, issue

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 13:40.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43