# Style not working right in IE8 (Works in Firefox)

**URL:** <https://forum.kirupa.com/t/style-not-working-right-in-ie8-works-in-firefox/291189>\
**Category:** web dev\
**Created:** [June 25, 2009, 11:16pm UTC](https://forum.kirupa.com/t/style-not-working-right-in-ie8-works-in-firefox/291189 "2009-06-25T23:16:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![frostBite](https://avatars.discourse-cdn.com/v4/letter/f/c89c15/32.png) [@frostBite](https://forum.kirupa.com/u/frostBite)\
**Post date:** [June 25, 2009, 11:16pm UTC](https://forum.kirupa.com/t/style-not-working-right-in-ie8-works-in-firefox/291189/1 "2009-06-25T23:16:54Z")

</div>

When trying to make a div style to stretch across the screen it only works in Firefox and not in IE8.

> 

#top-bar{  
position:absolute;  
top:0px;  
left:0px;  
right:0px;  
width:100%;  
height:35px;  
background-color:#000000;  
}

^That is the style, which doesn’t quite stretch across the screen.

Attached image 1 is a Pic. of working in Firefox:

attatched Picture 2 is of it not working in IE8: Hard to see I know but in the top right corner the black doesn’t reach the end of the page, it just stops.

Thank you for any help,  
-frostBite
