Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 21st, 2005, 12:55 AM
ShadowMan
Guest
 
Posts: n/a
Default Problem with Firefox

Hi all
I have a table width 4 cols each 25% width.
I would like to text-align on right and color background..the code below
works fine with IE but it doesn't with Firefox:

I can't colorize background on cells with 'label' style and I can't
right-align ... plz help me.

<html> <head>
<style type="text/css">

h1.editSectionTitle{
border-bottom: 1px solid #8CACBB;
background-color: #DEE7EC;
font-weight: bold ;
font-size: 1em;
color: #436976;
padding:0.3em 0.3em 0.3em 0.3em;
border-bottom:1px solid #8CACBB;
border-top:1px solid #8CACBB;
margin-bottom: 0.2em;
}
..editSection {
PADDING: 0;
position: relative;
}

..tableFixed {
table-layout: fixed;
padding: 0;
background-color: #DEE7EC;
width: 100%;
}
..label {
background-color: #F7F9FA;
text-align: right;
font: bold 1em;
padding-right: 0.3em;
}
..field {
vertical-align: middle;
background-color: white;
}
..col25Label {
background-color: #F7F9FA;
text-align: right;
font: bold 1em;
width:25%;
}
..col25{
width:25%;
}
</style>
</head>
<body>
<br>
<h1 class="editSectionTitle">DATA</h1>
<div class="editSection" >
<table class="tableFixed" >
<colgroup>
<col class="col25" /><col class="col25" /><col class="col25" /><col
class="col25" />
</colgroup>

<tr>
<td class="label" >(*) Name</td>
<td class="field" >
<input type="text" name="field1" value="33">
</td>
<td class="label" >(*) Surname</td>
<td class="field" >
<input type="text">
</td>
</tr>
<tr>
<td class="label" width="25%">ID</td>
<td class="field" width="25%">
<input type="text">
</td>
<td class="label" width="25%">BirthDate</td>
<td class="field" width="25%">
<input type="text">
</td>
</tr>
</table>
</div>


  #2  
Old July 21st, 2005, 12:55 AM
jmm-list-gn
Guest
 
Posts: n/a
Default Re: Problem with Firefox

ShadowMan wrote:[color=blue]
> Hi all
> I have a table width 4 cols each 25% width.
> I would like to text-align on right and color background..the code below
> works fine with IE but it doesn't with Firefox:
>
> I can't colorize background on cells with 'label' style and I can't
> right-align ... plz help me.
>[/color]
Show me the URL!

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
  #3  
Old July 21st, 2005, 12:57 AM
bulge
Guest
 
Posts: n/a
Default Re: Problem with Firefox

On Mon, 4 Oct 2004 11:24:25 +0200, "ShadowMan" <shadman@despammed.com>
wrote:
[color=blue]
>Hi all
>I have a table width 4 cols each 25% width.
>I would like to text-align on right and color background..the code below
>works fine with IE but it doesn't with Firefox:
>
>I can't colorize background on cells with 'label' style and I can't
>right-align ... plz help me.
>[/color]

I just pasted your code in. Text is right-aligned. Colour works fine.
The code looks the same in IE5, Opera 7.24 and Firefox 1.0PR.

I don't see the prob?
  #4  
Old July 21st, 2005, 12:57 AM
ShadowMan
Guest
 
Posts: n/a
Default Re: Problem with Firefox

bulge <invalid@nodomain.nett> wrote:[color=blue]
> On Mon, 4 Oct 2004 11:24:25 +0200, "ShadowMan" <shadman@despammed.com>
> wrote:
> I just pasted your code in. Text is right-aligned. Colour works fine.
> The code looks the same in IE5, Opera 7.24 and Firefox 1.0PR.
> I don't see the prob?[/color]
I found the problem ... I used .label class definition twice ... without
using "!important" suffix ... now it works for me too ...
--
ShadowMan


 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles