?
Solved

css clear causing space between divs

Posted on 2013-01-26
2
Medium Priority
?
363 Views
Last Modified: 2013-01-27
I have a few divs one after the other with a border around each of them.
For some reason they don't line up evenly 1 on top of the next so I put a clear:both on the div and then the divs are fine.
but then I ended up with a space between each div, instead of them collapsing into each other.
You can view it here:http://ytcdenver.org/index.php
what can I do to fix the problem?
0
Comment
Question by:rivkamak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 17

Expert Comment

by:selvol
ID: 38823626
	<p><img src="index.php_files/TopHP.jpg" style="border: 0; float: left; margin: 20px;" border="0">&nbsp;</p>

Open in new window

And
	<p><img src="index.php_files/middleHP.jpg" style="float: left; border: 0; margin: 20px;" align="left" border="0">&nbsp;</p>

Open in new window



Try changing the margin to "0" on the above.....

Selvol
0
 
LVL 16

Accepted Solution

by:
Kiran Paul VJ earned 2000 total points
ID: 38823742
Remove clear:both;

and add

overflow: hidden;

in class

.moduletablehpside

in default.css line no : 391
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question