You are here Support Forums
Search:  
SQLView - CSS / HTML Conflicts
Last Post 20 Aug 2006 10:11 PM by hongthuy vu. 2 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
hongthuy vu
New Member
New Member
Posts:16

--
20 Aug 2006 10:11 PM  
I was trying to change the presentation in some of the CSS classes for the SQLView module & kept on running into problems with borders. Then i noticed in the generated HTML that there is a border setting for the table. (see below) I have a feeling that there is a conflict between the CSS settings and the settings at the HTML level & i'm not sure which will take precedence. Is there any way that I can remove the HTML attributes listed below?; - Border="1", - cellspacing="0" - style="width:100%;border-collapse:collapse;" I'm not 100% certain but i think all of these attributes can be set through CSS. Let me know what you think cheers John
Richard Edwards
DNNStuff Founder
Veteran Member
Veteran Member
Posts:1207
Avatar

--
21 Aug 2006 06:38 AM  
You should be able to specify those settings in SQLView.ascx. In there, I'm just defining a default grid with the line: [code][/code] You can most likely set the border to 0 in there, it's probably defaulting to 1 because I don't specify it. Here is the datagrid definition page from MSDN to help with the various settings, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebUIWebControlsDataGridClassTopic.asp.


Richard Edwards
DNNStuff Founder
Did you receive excellent support? Consider leaving a testimonial
hongthuy vu
New Member
New Member
Posts:16

--
22 Aug 2006 08:26 PM  
Thanks for the tip on the grid settings. I managed to remove the border="0" from the generated HTML by specifying [b]GridLines="None"[/b] in SQLView.asxc. See below; [code].[/code] It worked and my border problems have gone. The output HTML now looks like this; [code][/code] It appears that GridLines=None will also remove the [b]rules="All"[/b] setting. I wasnt able to remove the "style="width:100%;border-collapse:collapse;" setting but It doesnt seem to be having a negative affect in IE or firefox so i wont chase it right now. Thanks for your help John
You are not authorized to post a reply.

Active Forums 4.1
Privacy StatementTerms Of UseCopyright (c) 2004-2012 DNNStuff