Does anyone have any advice on tableless layout as used on a content page? Perhaps a different video or tutorial?
I asked a similar question on an existing thread, (as we have been encourage to use to prevent thread proliferation), and the response was the locking of the thread. So thats why I am starting a new thread on a subject that is similar to that of existing
threads.
Since your new question is not directly related to the original issue, it would be best if you open up a new thread for the new question. In this way, our discussion here will not deviate too much from the original issue. This will make answer searching
in the forum easier and be beneficial to other community members as well.
Thank you for your understanding.
Best wishes,
Please mark the replies as answers if they help or unmark if not.
Feedback to us
The original post explains that I set up a style sheet on the content page (which meant that it had to use "<div>"). It also explained that the float right portions of the style did not work for ASP.NET server controls.
Also neither of these links addresses the use of ASP.NET controls.
joeller
Member
171 Points
161 Posts
Tableless layout using style sheets on content page of Master paged site.
Nov 29, 2012 06:26 PM|LINK
I've seen tutorial that talk about tableless design but only discusses HTML controls, not ASP.Net server controls.
Then I saw a video at site http://www.asp.net/web-forms/videos/how-do-i/how-do-i-create-an-efficient-and-standardized-approach-for-implementing-css-styles that shows how to utlize styles on the content page of a site with a Master page. It mentioned one ASP.Net server control but used JavaScript to set the styles.
I haven't seen any discussion about using the tableless design in the content pages that fit into the asp.contentplaceholder controls.
I copied the code from http://www.simple-talk.com/dotnet/asp.net/back-to-basics-structuring-a-web-page-with-css-and-asp.net/ to a new web app project and applied it the content page. But when it opened it appears that the style for float :right for the button did not work.
Does anyone have any advice on tableless layout as used on a content page? Perhaps a different video or tutorial?
I asked a similar question on an existing thread, (as we have been encourage to use to prevent thread proliferation), and the response was the locking of the thread. So thats why I am starting a new thread on a subject that is similar to that of existing threads.
Catherine Sh...
All-Star
23382 Points
2490 Posts
Microsoft
Re: Tableless layout using style sheets on content page of Master paged site.
Dec 05, 2012 02:26 AM|LINK
Hi,
Please try the demo below:
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .button1Style { float :right ; } </style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:Button ID="Button1" runat="server" Text="Button" CssClass="button1Style" /> </asp:Content>You can try to use DIV tag to define the different portions of the contentBest. For detail, please check the link below:
http://www.w3.org/2002/03/csslayout-howto
http://webdesign.about.com/od/css/a/aa102102a.htm
Best Wishes,
Feedback to us
Develop and promote your apps in Windows Store
joeller
Member
171 Points
161 Posts
Re: Tableless layout using style sheets on content page of Master paged site.
Dec 12, 2012 06:14 PM|LINK
Another question I have concerning style sheets
Section 508 § 1194.22 Part d) reads “Documents shall be organized so that they are readable without requiring an associated style sheet."
So if stylesheets are used to set the layout for pages, then how can those pages meet this accessibility requirement?
Catherine Sh...
All-Star
23382 Points
2490 Posts
Microsoft
Re: Tableless layout using style sheets on content page of Master paged site.
Dec 13, 2012 12:20 AM|LINK
Hi,
Since your new question is not directly related to the original issue, it would be best if you open up a new thread for the new question. In this way, our discussion here will not deviate too much from the original issue. This will make answer searching in the forum easier and be beneficial to other community members as well.
Thank you for your understanding.
Best wishes,
Feedback to us
Develop and promote your apps in Windows Store
joeller
Member
171 Points
161 Posts
Re: Tableless layout using style sheets on content page of Master paged site.
Dec 13, 2012 01:25 PM|LINK
I was hoping to get a reply from someone already monitoring the thread since it is so hard to get a reply to a new post on ASP.Net forums.
joeller
Member
171 Points
161 Posts
Re: Tableless layout using style sheets on content page of Master paged site.
Dec 13, 2012 01:45 PM|LINK
We are not permitted to use in page styles.
The original post explains that I set up a style sheet on the content page (which meant that it had to use "<div>"). It also explained that the float right portions of the style did not work for ASP.NET server controls.
Also neither of these links addresses the use of ASP.NET controls.