SunQuest
           CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 21st, 2003, 12:37 PM
alicomb's Avatar
alicomb alicomb is offline
PHP Newbie forever
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: France
Posts: 58 alicomb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to alicomb
HTML CSS Div problem

I have recently just started to use web standards praticually xhtml 1.0

The problem I am having is that the box I am going to us to hold news updates seems to have a gap.




I cannot get rid of the gap and its really annoying me.

The HTML code is:
Quote:
<div class="newsbody2" align='left'>
<img src='Images/newsbanner.gif' width="344" height="12" border="0" alt="NewsBar top" />
<div class="newsbody">&nbsp;</div>
<img src="Images/newsbannerbot.gif" width="344" height="12" border="0" alt="NewsBar bottom" /></div>


The CSS is:
Quote:
div.newsbody {border: #000000; border-style: dashed; border-top-width: 1px; border-right-width: 1px;
border-bottom-width: 0px; border-left-width: 1px; width: 342px; height: 200px;}

div.newsbody2 {margin: 8px 0px 2px 15px; border: 0px 0px 0px 0px;}


What am i missing or doing wrong?
__________________
-----------------------------------
Php and MySql N3wbie forever.................
-----------------------------------

Reply With Quote
  #2  
Old December 21st, 2003, 05:03 PM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,526 kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 19 h 47 m 28 sec
Reputation Power: 584
Why don't you post the page uri instead of a screen capture so we can play with it?

My initial thought is the white space bug.
Code:
<img src='Images/newsbanner.gif' 
  width="344"
  height="12"
  border="0"
  alt="NewsBar top" />   <---white space after the <img /> tag


cheers,

gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

Ask a better question, get a better answer.

Reply With Quote
  #3  
Old December 21st, 2003, 05:14 PM
alicomb's Avatar
alicomb alicomb is offline
PHP Newbie forever
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: France
Posts: 58 alicomb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to alicomb
That seems to be the problem, is there anyway to get around it apart from moving the next line of code to the same line as the img?

-ali

Reply With Quote
  #4  
Old December 21st, 2003, 05:41 PM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,526 kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 19 h 47 m 28 sec
Reputation Power: 584
It's that or hope that noone uses IE---fat chance.

cheers,

gary

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > HTML CSS Div problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway