[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

HR doesn't show up in firefox

Posted on 2009-04-21
4
Medium Priority
?
974 Views
Last Modified: 2012-05-06
I am working on a page, and on IE the HR shows up, it is in the center of the page between two blurbs. But in Firefox, it doesn't show up. Here is the page:
http://www.braintrustinc.com/index2d.php

the code for the div containing the HR is below and the CSS for the div and the hr.

I don't get it!!!! Usually Firefox is so cooperative.

Thanks
the div:
<div id="indexhr"><hr></div>
 
CSS for this div:
#indexhr {
	clear:left;
	float:left;
	width:350px;
	height:20px;
}
 
CSS for the hr:
hr {
	color:#AECCD9;	
	width:350px;
	height:3px;
}

Open in new window

0
Comment
Question by:nanharbison
  • 3
4 Comments
 
LVL 19

Expert Comment

by:erikTsomik
ID: 24198400
this code works like a charm in firefox . I am assuming there are some other css that prevent the page to show <hr>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#indexhr {
        clear:left;
        float:left;
        width:350px;
        height:20px;
}
 
hr {
        color:#AECCD9;  
        width:350px;
        height:3px;
}



</style>

</head>
<body>
<div id="indexhr"><hr></div>
</body>
</html>
0
 
LVL 17

Author Comment

by:nanharbison
ID: 24199214
Ok, so I took out all CSS and slowly added it back, this is the culprit. Now I am taking out one line at at time of this CSS. This code is declared first in the CSS document and is supposed to zero out everything before you start so there are no predefined CSS values.
Why would this cause a problem though?



* {
	margin:0; 
	padding:0;
	border:none;
	outline:0;
	font-style:normal;
	font-weight:normal;
	text-decoration:none; 
}

Open in new window

0
 
LVL 17

Author Comment

by:nanharbison
ID: 24199241
this line appears to be the problem:
border:none;

why?
0
 
LVL 17

Accepted Solution

by:
nanharbison earned 0 total points
ID: 24199347
0

Featured Post

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.

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.
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…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
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…
Suggested Courses

834 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