LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-27-2007, 02:49 AM   #1
nkoplm
Member
 
Registered: May 2005
Distribution: Fedora
Posts: 92

Rep: Reputation: 15
css/html wtf? extra space below div


http://img87.imageshack.us/img87/5017/wtfya4.png
Shot at 2007-06-27

how can I get rid of the red line? Im stummped on what is going on.

html:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-strict.dtd">
<html><head><link rel="stylesheet" href="css.css" type="text/css" /></head><body>

<div id="cbox" >
 <img src="images/title.png" class="block"  />
 <div id="mpanel">
  <img src="menu/p.png" />

  <img src="menu/spacer.png" alt="" />

 ...bunch of menu images..


  <a href="asdsa"><img src="menu/link4.png"></a>
  <img src="images/menu/spacer.png" alt="" />

 </div>
<!-- problem is the space btwn these to object-->
 <img src="images/pre.png" class="block" alt="" />


...
css:
Code:
html body	{
 background:#FAFAFA;
 padding:0px;
 margin:0px;
 font: 12px arial, sans-serif;
 }

img	{
 padding:0px;
 margin:0px;
 border:0px;
 }

#cbox	{
 width:700px;
 margin:0px 0px 0px -350px;
 padding:0px;
 position:relative;
 left:50%;
 background:#DBDBDB;	
 }

#mpanel	{
 width:700px;
 height:23px;
 background:red;
 }

.block	{
	display: block;
 }

Last edited by nkoplm; 06-27-2007 at 02:57 AM.
 
Old 06-27-2007, 03:31 PM   #2
Centinul
Member
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 552

Rep: Reputation: 30
Check this out: http://www.positioniseverything.net/explorer.html

HTH,

Centinul
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to create overlapping CSS div boxes. rose_bud4201 Programming 2 05-13-2007 02:27 PM
HTML/CSS/JS: Problem with <p> not having an absolute position with CSS. RHLinuxGUY Programming 7 03-03-2007 12:21 AM
Reset the HTML content of a div with javascript phil.d.g Programming 5 02-14-2006 02:29 AM
HTML: Opening links in a <div> instead of a fram slizadel Programming 1 10-20-2004 08:20 PM
html/css hylke Programming 0 06-27-2004 02:39 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration