Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > markup not working on IE8 and Firefox

Reply
Thread Tools

markup not working on IE8 and Firefox

 
 
Jeff
Guest
Posts: n/a
 
      03-23-2009
hi

asp.net 2.0

this markup don't work in IE8 and FireFox, more specific it means that
background-color:Green isn't set.
maybe it's set but I cannot see it...

<div id="BottomPanel" style="width:100%; background-color:Green;"
runat="server">
<div style="float:right; margin-right:20px; color:White;
padding-bottom:10px; padding-top:10px;" >
hello world
</div>
</div>

any suggestions?


 
Reply With Quote
 
 
 
 
Stan
Guest
Posts: n/a
 
      03-23-2009
On 23 Mar, 23:31, "Jeff" <(E-Mail Removed)> wrote:
> hi
>
> asp.net 2.0
>
> this markup don't work in IE8 and FireFox, more specific it means that
> background-color:Green isn't set.
> maybe it's set but I cannot see it...
>
> <div id="BottomPanel" style="width:100%; background-color:Green;"
> runat="server">
> * * <div style="float:right; margin-right:20px; color:White;
> padding-bottom:10px; padding-top:10px;" >
> *hello world
> * * </div>
> </div>
>
> any suggestions?


Try setting a height value for the "BottomPanel" div element. It might
be that the float:right property is causing the inner div element to
ride above its container so the latter is collapsed vertically.

HTH
 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      03-24-2009
IE8 and firefox are correct. the div bottom panel has no height (as
floating objects span their containers so have no effect on container
size).

-- bruce (sqlwork.com)

Jeff wrote:
> hi
>
> asp.net 2.0
>
> this markup don't work in IE8 and FireFox, more specific it means that
> background-color:Green isn't set.
> maybe it's set but I cannot see it...
>
> <div id="BottomPanel" style="width:100%; background-color:Green;"
> runat="server">
> <div style="float:right; margin-right:20px; color:White;
> padding-bottom:10px; padding-top:10px;" >
> hello world
> </div>
> </div>
>
> any suggestions?
>
>

 
Reply With Quote
 
Jeff
Guest
Posts: n/a
 
      03-24-2009
thanks to both of you, the problem is solved

"Stan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
On 23 Mar, 23:31, "Jeff" <(E-Mail Removed)> wrote:
> hi
>
> asp.net 2.0
>
> this markup don't work in IE8 and FireFox, more specific it means that
> background-color:Green isn't set.
> maybe it's set but I cannot see it...
>
> <div id="BottomPanel" style="width:100%; background-color:Green;"
> runat="server">
> <div style="float:right; margin-right:20px; color:White;
> padding-bottom:10px; padding-top:10px;" >
> hello world
> </div>
> </div>
>
> any suggestions?


Try setting a height value for the "BottomPanel" div element. It might
be that the float:right property is causing the inner div element to
ride above its container so the latter is collapsed vertically.

HTH


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ie8!=ie8 cecile Javascript 2 05-24-2010 09:04 AM
Re: Advantages of IE8/64 over IE8/32 PA Bear [MS MVP] Windows 64bit 0 08-17-2009 09:43 PM
Centers nicely in IE8 but not in FireFox AAaron123 ASP .Net 6 08-17-2009 02:44 PM
code not working in IE6 and IE8 Jeff ASP .Net 3 04-15-2009 03:10 PM
another IE8, firefox markup problem Jeff ASP .Net 3 03-24-2009 02:44 PM



Advertisments