473,387 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

GridView borders in Firefox?

So, I am aware of the problem with how the gridview renders in firefox.
I am unable to get those "light grey" gridlines in FF but they work
fine in IE. In looking at the rendered html, it appears as if the CSS
classes and styles are set at the TR (row) and not the TD (cell).
Moving the styles to the TD element makes it work in Firefox but there
is no way to add CSS classes to the TD element of the GridView.

Are there any work arounds for this? It is really annoying!

Thanks.

Apr 17 '06 #1
2 3181
you should use css inhertance. in your style sheet, setup up your tr class,
then setup one for td under that class. then you only need a td class if you
need an override. you may be able to just use a table class.

<style>
.foo {border=none;}
.foo td {border=gray 1 solid;}
</style>
<table class=foo>
<tr>
<td>row1 col1</td>
<td>row1 col2</td>
</tr>
<tr>
<td>row2 col1</td>
<td>row2 col2</td>
</tr>
</table>

-- bruce (sqlwork.com)

"emde" <em********@yahoo.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
So, I am aware of the problem with how the gridview renders in firefox.
I am unable to get those "light grey" gridlines in FF but they work
fine in IE. In looking at the rendered html, it appears as if the CSS
classes and styles are set at the TR (row) and not the TD (cell).
Moving the styles to the TD element makes it work in Firefox but there
is no way to add CSS classes to the TD element of the GridView.

Are there any work arounds for this? It is really annoying!

Thanks.

Apr 18 '06 #2
Thanks, I ended up figguring something similar last night. I just
wrapped a classed div around the gridview and used inheritance on the
div. I do however like your suggestion, putting the class on the table
(gridview) and using inheritance that way, it's a bit more clean.

Thanks again, hopefully this will help others as well.

Apr 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Lee | last post by:
Hello all, I have an aspx page with a Div that holds a few controls such as textbox and combo box. I use this same setup on several other pages with no problem. For one page in particular, the...
0
by: msnews.microsoft.com | last post by:
Hello everyone., please help. I took the CSS from a DataGrid and applied it to the GridView. It does not take the CSS settings. Simple settings like; border: solid 1px black fails to apply...
9
by: Michael Redbourn | last post by:
Hi, I just switched from FP to DW and am very very happy ! So whilst I'm mastering Dreamweaver (gonna be a while yet :-) - I thought that I'd try and find out how to add borders for browers...
0
by: David Stone | last post by:
I have a page containing a table which displays as expected but which, when printed from either Firefox or Camino, loses some of the vertical borders between cells in both the table head and body. ...
3
by: Stan SR | last post by:
Hi, How to remove the border of each row (from the gridview control). ? I set borderWidth to 0, and the borders are not displayed with IE, but the top and bottom borders are with FireFox. ...
0
by: jrnail23 | last post by:
I have a user control which contains an UpdatePanel, which contains a MultiView inside, with a GridView in one of the views. In my GridView, I have a ButtonField which is supposed to trigger a...
11
by: HEX | last post by:
Have a page developed w/VWD which has a Gridview control. XHTML 1.0 Transitional Doctype. Tested in VWD OK and renders in IE7 as tested. When rendered with Firefox, the Gridview is shifted far to the...
2
by: =?Utf-8?B?UGhpbCBKb2huc29u?= | last post by:
Hi, I have a gridview and I need it to display correctly in Opera. I need to set the row height, so that even on the last page of data all the rows are the same height as on the other pages. ...
0
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hi misters, I am using a CssClass to fix the gridview header in ASP.Net 2005(C#),which is working fine in IE..But not working in Firefox..This is the cssclass which I'm using right now ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.