开发者

PHP spacing between floated div containing SQL results (paged) and another div containing content

开发者 https://www.devze.com 2023-03-16 20:02 出处:网络
I am having a pr开发者_JAVA百科oblem where I have made a database that contains 7 items. These items are displayed by echoing a variable and set to page in sets of 3. I have some content under the div

I am having a pr开发者_JAVA百科oblem where I have made a database that contains 7 items. These items are displayed by echoing a variable and set to page in sets of 3. I have some content under the div that displays the results. Each one of the items displays in its own div within the div holding the results. Each result div (item) is floated left.

On the first two pages, this content appears directly under the results. On the last page, I can see the space in between the results and the content; the space is the

tag that i inserted to try and put some between the results and the content below it.

I tried adding bottom padding and margins to the container div but this still will only display on the last page.

My question, is how can I do this in a better way, so that i can actually add spacing between the container div and the contents below it on all pages?


Are you styling the divs on the same page or in a template? can we get some of the code to look at, would help out a bit.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号