Solved

CSS issue - large gap and don't know how to narrow it down

Posted on 2010-11-18
3
316 Views
Last Modified: 2012-05-10
On this site:

http://subastaprlive.auctionserver.net/view-auctions/individual-lots/?key=

Under the word "Estimates" there is an unusually large gap and I'm wondering how I can reduce it.
0
Comment
Question by:SWB-Consulting
3 Comments
 
LVL 3

Expert Comment

by:udoobu
ID: 34167486
Hello! It looks like there is a <br> tag right under "Estimates" that's causing the spacing. Are you able to remove that <br> or is it set in a template or something?
0
 

Author Comment

by:SWB-Consulting
ID: 34167573
Yes the br tag is set and it has to be there, but it also appears at other places and doesn't cause such large gaps ...
0
 
LVL 9

Accepted Solution

by:
CCSOFlag earned 500 total points
ID: 34168372
it's because the estimate div that you have is a block element.  Block elements automatically puts a <br /> after the div.  So when you put another one in it adds another line completely.  Then you have another div which is another block which starts another new line.  Removing that <br /. will move the values up beneath the word estimate.

So essentially you have three <br /> there in that spot because of how block elements work.  If you do not want the element to be a block, then change the display attribute to something else.  For example you could do display: inline-block (although IE doesn't recognize this).  If you did this, THEN you would want the <br /> there to force the values to move below the word estimates.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
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 customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

828 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