Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




2258 posts

Uber Geek
+1 received by user: 248

Trusted

Topic # 146820 29-May-2014 22:53
Send private message

I have been trying to figure this out ever since, but if you go to my website, and scroll down, you can see that there are some gaps in the posts which is not normal and they should be filled up with posts. 

Also, if you resize the browser on desktop, or view the site from a mobile, the first few posts overlap each other.

Does anybody know what is wrong? I.E what code is overlapping what please?

I am using the Pinboard theme, but with mods, on Wordpress.

Thanks in advance!




Create new topic
Fully Operational
3343 posts

Uber Geek
+1 received by user: 1088

Trusted
Vocus
Subscriber

  Reply # 1056366 30-May-2014 09:33
Send private message

In your two column section; you need to force the articles to the same height.

I made a change to .twocol adding "height: 271px" and it seemed to fix it.

edit: another way would be to put some kind of clearing div after every two articles.

Webhead
1879 posts

Uber Geek
+1 received by user: 550

Trusted
Subscriber

  Reply # 1056512 30-May-2014 13:33
Send private message

Clearing div is a much better way to fix it than forcing the height. Especially if you are making a responsive design (but in general its always better to let things flow dynamically than trying to force a set height)




 
 
 
 




2258 posts

Uber Geek
+1 received by user: 248

Trusted

  Reply # 1056547 30-May-2014 14:13
Send private message

Thanks guys, would the clearing divs go in the css file after every two articles?




Webhead
1879 posts

Uber Geek
+1 received by user: 550

Trusted
Subscriber

  Reply # 1056678 30-May-2014 17:46
Send private message

This is an example of clearing div stylesheet:

.fix {
clear: both;
height: 1px;
margin: -1px 0 0;
overflow: hidden;
}

You would put that in your stylesheet and use

<div class="fix"></div> where you want to clear the floats.









2258 posts

Uber Geek
+1 received by user: 248

Trusted

  Reply # 1056927 31-May-2014 01:21
Send private message

jarledb: This is an example of clearing div stylesheet:

.fix {
clear: both;
height: 1px;
margin: -1px 0 0;
overflow: hidden;
}

You would put that in your stylesheet and use

<div class="fix"></div> where you want to clear the floats.





Where should I clear the floats using the div tags?




Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

New Zealand hits peak broadband data
Posted 18-Jan-2018 12:21


Amazon Echo devices coming to New Zealand early February 2018
Posted 18-Jan-2018 10:53


$3.74 million for new electric vehicles in New Zealand
Posted 17-Jan-2018 11:27


Nova 2i: Value, not excitement from Huawei
Posted 17-Jan-2018 09:02


Less news in Facebook News Feed revamp
Posted 15-Jan-2018 13:15


Australian Government contract awarded to Datacom Connect
Posted 11-Jan-2018 08:37


Why New Zealand needs a chief technology officer
Posted 6-Jan-2018 13:59


Amazon release Silk Browser and Firefox for Fire TV
Posted 21-Dec-2017 13:42


New Chief Technology Officer role created
Posted 19-Dec-2017 22:18


All I want for Christmas is a new EV
Posted 19-Dec-2017 19:54


How clever is this: AI will create 2.3 million jobs by 2020
Posted 19-Dec-2017 19:52


NOW to deploy SD-WAN to regional councils
Posted 19-Dec-2017 19:46


Mobile market competition issues ComCom should watch
Posted 18-Dec-2017 10:52


New Zealand government to create digital advisory group
Posted 16-Dec-2017 08:47


Australia datum changes means whole country moving 1.8 metres north-east
Posted 16-Dec-2017 08:39



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.