Solved

CSS Issue

Posted on 2014-09-05
7
308 Views
Last Modified: 2014-09-05
I am writing a site in asp.net with css however, I noticed a strange issue.

I have the stie layout as header on top,footer on bottom with 4 quadrants in the center that should all be equal sized.

I am having trouble getting them to be equal sized it appears that there is an extra line appearing within the box.

Here is my css
style>
		*{
			margin:0;
			padding:0;
	-webkit-box-sizing:border-box;
	   -moz-box-sizing:border-box;
		-ms-box-sizing:border-box;
		 -o-box-sizing:border-box; 
			box-sizing:border-box;
		}
		.clearfix {
		  border-style: none;
		}
		body
		{
        background-image: url(Images/navy.jpg);
          -webkit-background-size: cover;
         -moz-background-size: cover;
         -o-background-size: cover;
         background-size: cover;

		}

		.clearfix:before,
		.clearfix:after {
		  display: table;
		  line-height: 0;
		  content: "";
		  border-style: none;
		}

		.clearfix:after {
		  clear: both;
		  border-style: none;
		}
		.wrapper{
			max-width: 1024px;
			margin:0 auto;
			
		}
		.header{
			margin-left: auto;
		    margin-right: auto;
		    width: 96%;
		    border: 0px;
		    padding: 5px;
		}
		.content{
			border:0px solid gray;
			background-color:White;
			height:50%;
		}
		.content > div{
			width:50%;
			height:50%;
			float:left;
			border:1px solid gray;
			background-color:White;
		
		}
		.footer{
			border:1px;
			color: grey;
			border: solid;
			background-color: White;
						

		}
		.center
		{
		    margin-left: auto;
		    margin-right: auto;
		    width: 56%;
		    
		}
		.centerimg
		{
		    margin-left: auto;
		    margin-right: auto;
		    width: 100%;
		    
		}
	    .style1
        {
            
            border-color: inherit;
           
            color: gray;
            text-align: center;
            background-color:White;
        }
        .image
        {
            position: absolute;
            top: 50%;
            bottom: 50%;
            display: block;
            margin-left: auto;
            margin-right: auto;
            
        }
	    .style3
        {
            text-align: center;
        }
	    .style4
        {}
	    .style5
        {}
        .style6
        {}
	    .style9
        {
            height: 25px;
            width: 285px;
        }
	    .style10
        {
            height: 28px;
            width: 285px;
        }
	    .style11
        {
            color: black;
        }
	</style>

Open in new window



Here is what it looks like and where the issue is

Issue
I know it has to be something simple. I just want it to not show that gray line that does not match with anything else. I do however want to keep a boarder separating the 4 tiles.


Thanks,
0
Comment
Question by:desiredforsome
[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
  • 4
  • 3
7 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40306175
The CSS means nothing without the HTML that goes with it, and it's a bit hard to debug an image.
0
 

Author Comment

by:desiredforsome
ID: 40306211
here is the html
</head>
<body>
    <form id="form1" runat="server">
   <div class="wrapper">
		<div class="header">
			<asp:Image ID="Image1" runat="server" Height="264px" 
                ImageUrl="~/Images/MF Logo Phone.jpg" Width="984px" CssClass="style4"  />
		</div>
		<div class="content clearfix">
			<div>Your Loan Information:<br />
                <br />
                <asp:Label ID="Label1" runat="server" Text="Borrower Name: "></asp:Label>
                <br />
                <asp:Label ID="Label2" runat="server" Text="Loan Officer:"></asp:Label>
                <br />
                <asp:Label ID="Label3" runat="server" Text="Loan Type:"></asp:Label>
                <br />
                <asp:Label ID="Label4" runat="server" Text="Loan Processor:"></asp:Label>
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
            </div>
			<div>Where is your loan currently?<br />
                <br />
                <br />
                <br />
                <div class="centerimg">
                  <asp:ImageButton ID="ImageButton1" runat="server" Height="152px" Width="506px" ImageUrl="~/Images/app1.png" 
                  OnMouseOver="src=~/Images/proc1.png;" onclick="ImageButton1_Click"
                  />
                
                    <br />
                
                    </div>
                    <div class="center">
                <table style="width:100%;">
                    <tr>
                        <td class="style10">
                            </td>
                    </tr>
                    <tr>
                        <td class="style9">
                <asp:Label ID="Label5" runat="server" CssClass="style3" Text="Label"></asp:Label>
                        </td>
                    </tr>
                 
                </table>
                </div>
            </div>
			<div>Conversation Log:<br />
                <br />
                <br />
                <br />
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                <asp:Button ID="Button1" runat="server" onclick="Button1_Click1" 
                    Text="Button" />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <asp:Label ID="PostalCodeLabel" runat="server" Text="Label"></asp:Label>
                <br />
                <br />
            </div>
			<div>Upload Documents:<br />
                <br />
                To upload documents select the type of document you are uploading from the drop 
                down. After you have selected the type of document click the &quot;Browse&quot; button to 
                locate the file you are uploading to<br />
                <br />
                Finaly - Click the Submit button<br />
                <br />
                <br />
                <br />
                <div class="center">
                <asp:DropDownList ID="DropDownList1" runat="server" CssClass="style6" Height="18px" 
                        Width="208px">
                    <asp:ListItem>PayCheck Stub</asp:ListItem>
                    <asp:ListItem>1099</asp:ListItem>
                    <asp:ListItem>Tax Returns</asp:ListItem>
                    <asp:ListItem>Proof Of Income</asp:ListItem>
                
                </asp:DropDownList>
                    <br />
                </div>
                <div class="center">
                <asp:FileUpload ID="FileUpload1" runat="server" CssClass="style5" Height="18px" />
                </div>
                <br />
                <br />
                <br />
                <br />
                <br />
            </div>
		</div>
		<div class="style1">
			M<br />
            27
            <br />
            Office: (3
            <br />
            Fax: (3<br />
            <a href="mailto:info@.net">t</a>
            <br />
            Copyright © 2014 l<br />
            <span class="style11"><strong>Current Logged in Username:
            <asp:LoginName ID="LoginName1" runat="server" />
&nbsp;&nbsp;</strong></span>&nbsp;&nbsp;&nbsp;
            <asp:LoginStatus ID="LoginStatus1" runat="server" 
                onloggingout="LoginStatus1_LoggingOut" />
        </div>
	</div>
	
    </form>
	
</body>
</html>

Open in new window

0
 
LVL 58

Expert Comment

by:Gary
ID: 40306256
Post the rendered HTML from the browser
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:desiredforsome
ID: 40306300
Here is the source from the page being viewed (I will move css to external later as it is currently in the source)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
	Financial Loan Status
</title><meta charset="UTF-8" />
	
	<style>
		*{
			margin:0;
			padding:0;
	-webkit-box-sizing:border-box;
	   -moz-box-sizing:border-box;
		-ms-box-sizing:border-box;
		 -o-box-sizing:border-box; 
			box-sizing:border-box;
		}
		.clearfix {
		  *zoom: 1;
		}
		body
		{
        background-image: url(Images/navy.jpg);
          -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;

		}

		.clearfix:before,
		.clearfix:after {
		  display: table;
		  line-height: 0;
		  content: "";
		}

		.clearfix:after {
		  clear: both;
		}
		.wrapper{
			max-width: 1024px;
			margin:0 auto;
			
		}
		.header{
			margin-left: auto;
		    margin-right: auto;
		    width: 96%;
		    border: 0px;
		    padding: 5px;
		}
		.content{
			border:1px solid gray;
			background-color:White;
		}
		.content > div{
			width:50%;
			float:left;
			border:1px solid gray;
			background-color:White;
		}
		.footer{
			border:1px;
			color: grey;
			border: solid;
			background-color: White;
						

		}
		.center
		{
		    margin-left: auto;
		    margin-right: auto;
		    width: 56%;
		    
		}
		.centerimg
		{
		    margin-left: auto;
		    margin-right: auto;
		    width: 100%;
		    
		}
	    .style1
        {
            
            border-color: inherit;
           
            color: gray;
            text-align: center;
            background-color:White;
        }
        .image
        {
            position: absolute;
            top: 50%;
            bottom: 50%;
            display: block;
            margin-left: auto;
            margin-right: auto;
            
        }
	    .style3
        {
            text-align: center;
        }
	    .style4
        {}
	    .style5
        {}
        .style6
        {}
	    .style9
        {
            height: 25px;
            width: 285px;
        }
	    .style10
        {
            height: 28px;
            width: 285px;
        }
	    .style11
        {
            color: black;
        }
	</style>
</head>
<body>
    <form method="post" action="" id="form1" enctype="multipart/form-data">
<div class="aspNetHidden">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTcxNzA0MDkwNQ9kFgICAw8WAh4HZW5jdHlwZQUTbXVsdGlwYXJ0L2Zvcm0tZGF0YRYOAgMPDxYCHgRUZXh0BSRCb3Jyb3dlciBOYW1lOiBDb3JleSBQaGlsbGlwIEdhc2hsaW5kZAIFDw8WAh8BBR1Mb2FuIE9mZmljZXI6IERhdmlkIEguIE1vcmdhbmRkAgcPDxYCHwEFF0xvYW4gVHlwZTogQ29udmVudGlvbmFsZGQCCQ8PFgIfAQUaTG9hbiBQcm9jZXNzb3I6IEFkbWluIFVzZXJkZAILDw8WAh4ISW1hZ2VVcmwFFH4vSW1hZ2VzL3N0YXJ0ZWQucG5nZGQCDQ8PFgIfAQUYTG9hbiBBcHBsaWNhdGlvbiBTdGFydGVkZGQCEw8PFgIfAQUGMTYwNDg4ZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgMFDEltYWdlQnV0dG9uMQUSTG9naW5TdGF0dXMxJGN0bDAxBRJMb2dpblN0YXR1czEkY3RsMDPtMQ5jskDn3BdIa5DRgHJM9tVwx6V6BuUQO7VLZOtp8w==" />
</div>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>


<div class="aspNetHidden">

	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdAAnhPASOpT2HPataRBEtAOFs6ZACrx5RZnllKSerU+IuKhEghZBVv0boc2NaC2/zVFTN+DvxnwFeFeJ9MIBWR693fQpuWDSPCNZ46ZjziKfK6nK4Tb/xqtf7IolePj6BLVsUk2vHFk5DMChws88JQkJHvdvhyRyvTJjS+FLBoTG5vs2Z5PPvhnoZdhq7V3Vze2CZeXiXtzjcMbqHx4VTnqxJMtEVAtbh1o2uUj1sYix08g==" />
</div>
   <div class="wrapper">
		<div class="header">
			<img id="Image1" class="style4" src="Images/MF%20Logo%20Phone.jpg" style="height:264px;width:984px;" />
		</div>
		<div class="content clearfix">
			<div>Your Loan Information:<br />
                <br />
                <span id="Label1">Borrower Name: Corey Phillip Gashlin</span>
                <br />
                <span id="Label2">Loan Officer: David H. Morgan</span>
                <br />
                <span id="Label3">Loan Type: Conventional</span>
                <br />
                <span id="Label4">Loan Processor: Admin User</span>
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
            </div>
			<div>Where is your loan currently?<br />
                <br />
                <br />
                <br />
                <div class="centerimg">
                  <input type="image" name="ImageButton1" id="ImageButton1" OnMouseOver="src=~/Images/proc1.png;" src="Images/started.png" style="height:152px;width:506px;" />
                
                    <br />
                
                    </div>
                    <div class="center">
                <table style="width:100%;">
                    <tr>
                        <td class="style10">
                            </td>
                    </tr>
                    <tr>
                        <td class="style9">
                <span id="Label5" class="style3">Loan Application Started</span>
                        </td>
                    </tr>
                 
                </table>
                </div>
            </div>
			<div>Conversation Log:<br />
                <br />
                <br />
                <br />
                <input name="TextBox1" type="text" id="TextBox1" />
                <input type="submit" name="Button1" value="Button" id="Button1" />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <span id="PostalCodeLabel">160488</span>
                <br />
                <br />
            </div>
			<div>Upload Documents:<br />
                <br />
                To upload documents select the type of document you are uploading from the drop 
                down. After you have selected the type of document click the &quot;Browse&quot; button to 
                locate the file you are uploading to l.<br />
                <br />
                Finaly - Click the Submit button<br />
                <br />
                <br />
                <br />
                <div class="center">
                <select name="DropDownList1" id="DropDownList1" class="style6" style="height:18px;width:208px;">
	<option value="PayCheck Stub">PayCheck Stub</option>
	<option value="1099">1099</option>
	<option value="Tax Returns">Tax Returns</option>
	<option value="Proof Of Income">Proof Of Income</option>

</select>
                    <br />
                </div>
                <div class="center">
                <input type="file" name="FileUpload1" id="FileUpload1" class="style5" style="height:18px;" />
                </div>
                <br />
                <br />
                <br />
                <br />
                <br />
            </div>
		</div>
		<div class="style1">
			Mor525<br />
            2 N. Harbor CiL 32935
            <br />
            Office: (370
            <br />
            Fax: (321) 757-9730<br />
            <a href="mailto:info@mo.net">info@ml.net</a>
            <br />
            Copyright © 2014al<br />
            <span class="style11"><strong>Current Logged in Username:
            <span id="LoginName1">cgashlin</span>
&nbsp;&nbsp;</strong></span>&nbsp;&nbsp;&nbsp;
            <a id="LoginStatus1" href="javascript:__doPostBack(&#39;LoginStatus1$ctl00&#39;,&#39;&#39;)">Logout</a>
        </div>
	</div>
	
    </form>
	
</body>
</html>

Open in new window

0
 
LVL 58

Expert Comment

by:Gary
ID: 40306377
It's not a line, it's becaue that box is smaller than the one next to it.
Don't use <BR> to make an element taller - use CSS
0
 

Author Comment

by:desiredforsome
ID: 40306394
How would I make it taller. if I want all boxes to be equal
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40306472
Set the height of the divs in the css
Would be something like this

.content > div {
height:150px
}

Open in new window

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

626 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