Skip to content

Commit

Permalink
IE Menu Problem...
Browse files Browse the repository at this point in the history
Originally, I included CSS hacks for IE.
However, my comments before the doctype was the reason IE was running in non-strict mode.  I did not know this.
When Chris removed the comments, IE correctly went into strict mode and my IE hacks were no longer needed (the hacks were getting in the way now).
solution:
*) Make sure doctype is first on all files
*) removed all IE hacks from menu.css (since the doctype issue fixes IE)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45025 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Kevin committed Dec 14, 2007
1 parent 9b73b39 commit a675133
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 27 deletions.
2 changes: 1 addition & 1 deletion www/clang_video-05-25-2007.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Material used from: HTML 4.01 specs: http://www.w3.org/TR/html401/ -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- Material used from: HTML 4.01 specs: http://www.w3.org/TR/html401/ -->
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
Expand Down
2 changes: 1 addition & 1 deletion www/clang_video-07-25-2007.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Material used from: HTML 4.01 specs: http://www.w3.org/TR/html401/ -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- Material used from: HTML 4.01 specs: http://www.w3.org/TR/html401/ -->
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
Expand Down
2 changes: 1 addition & 1 deletion www/comparison.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- Material used from: HTML 4.01 specs: http://www.w3.org/TR/html401/ -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<!-- Material used from: HTML 4.01 specs: http://www.w3.org/TR/html401/ -->
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
Expand Down
2 changes: 1 addition & 1 deletion www/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- Material used from: HTML 4.01 specs: http://www.w3.org/TR/html401/ -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<!-- Material used from: HTML 4.01 specs: http://www.w3.org/TR/html401/ -->
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
Expand Down
36 changes: 14 additions & 22 deletions www/menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,34 @@
/* page layout */
/***************/

/***IE***/
#menu {
float:left;
}
#content {
float:left;
margin-left:1ex;
}
/***W3C***/
[id=menu] {
position:fixed;
}
[id=content] {
/* ***** EDIT THIS VALUE IF CONTENT OVERLAPS MENU ***** */
padding-left:16ex;
/* ***** EDIT THIS VALUE IF CONTENT OVERLAPS MENU ***** */
padding-left:16ex;
}

/**************/
/* menu style */
/**************/

#menu .submenu {
padding-top:1em;
display:block;
}
/**************/

#menu .submenu {
padding-top:1em;
display:block;
}

#menu label {
display:block;
font-weight: bold;
display:block;
font-weight: bold;
text-align: center;
background-color: rgb(192,192,192);
background-color: rgb(192,192,192);
}
#menu a {
display:block;
padding:0 .2em;
display:block;
text-align: center;
background-color: rgb(235,235,235);
background-color: rgb(235,235,235);
}
#menu a:visited {
color:rgb(100,50,100);
Expand Down
2 changes: 1 addition & 1 deletion www/menu.html.incl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<a href="comparison.html">Comparisons</a>
<a href="get_started.html">Get&nbsp;Started</a>
<a href="get_involved.html">Get&nbsp;Involved</a>
<a href="http://clang.llvm.org/docs/InternalsManual.html">clang&nbsp;Internals</a>
<a href="http://clang.llvm.org/docs/InternalsManual.html">Clang&nbsp;Internals</a>
</div>

<div class="submenu">
Expand Down

0 comments on commit a675133

Please sign in to comment.