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.




2356 posts

Uber Geek
+1 received by user: 278

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
1928 posts

Uber Geek
+1 received by user: 577

Trusted
Lifetime 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)




 
 
 
 


Try Wrike: fast, easy, and efficient project collaboration software


2356 posts

Uber Geek
+1 received by user: 278

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
1928 posts

Uber Geek
+1 received by user: 577

Trusted
Lifetime 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.









2356 posts

Uber Geek
+1 received by user: 278

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 »

Opera launches new mobile browser: Opera Touch
Posted 25-Apr-2018 20:45


TCF and Telcos Toughen Up on Scam Callers
Posted 23-Apr-2018 09:39


Amazon launches the International Shopping Experience in the Amazon Shopping App
Posted 19-Apr-2018 08:38


Spark New Zealand and TVNZ to bring coverage of Rugby World Cup 2019
Posted 16-Apr-2018 06:55


How Google can seize Microsoft Office crown
Posted 14-Apr-2018 11:08


How back office transformation drives IRD efficiency
Posted 12-Apr-2018 21:15


iPod laws in a smartphone world: will we ever get copyright right?
Posted 12-Apr-2018 21:13


Lightbox service using big data and analytics to learn more about customers
Posted 9-Apr-2018 12:11


111 mobile caller location extended to iOS
Posted 6-Apr-2018 13:50


Huawei announces the HUAWEI P20 series
Posted 29-Mar-2018 11:41


Symantec Internet Security Threat Report shows increased endpoint technology risks
Posted 26-Mar-2018 18:29


Spark switches on long-range IoT network across New Zealand
Posted 26-Mar-2018 18:22


Stuff Pix enters streaming video market
Posted 21-Mar-2018 09:18


Windows no longer Microsoft’s main focus
Posted 13-Mar-2018 07:47


Why phone makers are obsessed with cameras
Posted 11-Mar-2018 12:25



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.