Jump to content

DIV Creating empty spaces


poison6feet

Recommended Posts

Hi

I have wrote CSS and I am using div on my index page, the data and url is picked from database dynamically and displayed on the page.  When I am using div it is create some empty space between, I have attached the screen shot.  Please help me.

 

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/172988-div-creating-empty-spaces/
Share on other sites

 

Please find my exact code, please suggest me the solution.

 

CSS

 

#content {

color: #000000;

height: AUTO;

width: 600px;

float:left;

margin-top: 0px;

filter: alpha(opacity=80);-moz-opacity: 0.8;

}

 

#dispcategorieslp {

margin: 5px 0 0 0;

background-color: white;

padding: 10px;

width: 270px;

font-size: 14px;

font-family: Arial;

text-align: left;

filter: alpha(opacity=80);-moz-opacity: 0.8;

color:#0066FF;

float:left;

}

 

PHP

 

<div id="content">

 

while($row_list=mysql_fetch_assoc($result)){

?>

<div id="dispcategories">

<strong><a href=<?echo $row_list['url'];?> style='text-decoration: none;'><?echo $row_list['Name'];?></a></strong>

<?

$subquery="select menusubcatid, catid, name, url, content from menusubcategories where catid=".$row_list['menucatid'];

//echo $subquery;

$subresult=mysql_query($subquery);

while($row_list_sub=mysql_fetch_assoc($subresult)){?>

<div id="navlist"><a href=<?echo $row_list_sub['url'];?>><?echo $row_list_sub['name'];?></a></div>

<?

}

?>

</div>

<?

}

}

?>

 

</div>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.