CSS border

Hello Expert,

Found some CSS code to make a border for htm pages that adjusts
to the size of the window.
It works great in Firefox 37 and Chrome 41 but is jacked up
in Internet Explorer 8.

Is there some way to make this work for IE 8 ?


Allen in Dallas

<TITLE>Border Page</TITLE>

#top, #bottom, #left, #right {
	background: #000080;
	position: fixed;
	#left, #right {
		top: 0; bottom: 0;
		width: 15px;
		#left { left: 0; }
		#right { right: 0; }

	#top, #bottom {
		left: 0; right: 0;
		height: 15px;
		#top { top: 0; }
		#bottom { bottom: 0; }

 body {font-family: arial}

 div.blue {background-color: #000080; color: yellow;
 padding: 10px 10px;
div.text {
 padding: 15px 15px;


<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#000080" VLINK="#800000" ALINK="#FF00FF" BACKGROUND="?">
<div id="left"></div>
<div id="right"></div>

<div class="blue">Title Text</div>
<div class="text"> <!- begin text -->

Body text Body text Body text Body text Body text Body text Body text Body text Body text

</div> <!- end text -->
<div id="top"></div>
<div id="bottom"></div>


Open in new window

Allen PittsBusiness analystAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David S.Commented:
That code is ancient.

Change the first line to the following which well tell browsers to use "standards mode":
<!DOCTYPE html>

Open in new window

Are you aware that the current version of IE is 11?

All of those attributes in the <body> tag are obsolete. CSS should be used instead.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Pravin AsarPrincipal Systems EngineerCommented:
Another way could be to use wrapper <div> tag for entire page, Use style attribute to define background, border, etc.
Allen PittsBusiness analystAuthor Commented:
Yes I am aware that the latest version is 11. The page is being developed for a company that is not exactly an early adoptor.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.