Jump to content

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>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.