Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CSS Issue

Posted on 2014-09-05
7
Medium Priority
?
309 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
WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.

 

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 2000 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

Technology Partners: 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

This article discusses how to create an extensible mechanism for linked drop downs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

730 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