Heading text alignment problem
-
I am working on a page that allows a user some control over layout and formatting. I want the user to be able to align the heading of a page just like the Windows Forms ContentAlignment property. For example: TopLeft, MiddleLeft, BottomLeft, MiddleTop, and so on.
Thanks, Mark
-
I am working on a page that allows a user some control over layout and formatting. I want the user to be able to align the heading of a page just like the Windows Forms ContentAlignment property. For example: TopLeft, MiddleLeft, BottomLeft, MiddleTop, and so on.
Thanks, Mark
And your question is?
The difficult we do right away... ...the impossible takes slightly longer.
-
I am working on a page that allows a user some control over layout and formatting. I want the user to be able to align the heading of a page just like the Windows Forms ContentAlignment property. For example: TopLeft, MiddleLeft, BottomLeft, MiddleTop, and so on.
Thanks, Mark
I'm not sure what you want. Let me guess. If what you want is web page styling, then that is this web styling language called Cascading Style Sheet or CSS in short. If you want user control over elements on a web page, then you can look to HTML5. If you want more dynamic contents then jQuery is what you are looking for. You can get some good tutorials at the W3C site.
-
I'm not sure what you want. Let me guess. If what you want is web page styling, then that is this web styling language called Cascading Style Sheet or CSS in short. If you want user control over elements on a web page, then you can look to HTML5. If you want more dynamic contents then jQuery is what you are looking for. You can get some good tutorials at the W3C site.
Sorry for the ambiguity. Windows has a ContentAlignment property that aligns the text in a control from TopLeft to BottomRight, and also middles. I know that using CSS you can align textual content using the div as a container. I was wondering if there is a way to use the ContentAligment property values from a Windows form to set the div container css. So if the user selects MiddleLeft the text is aligned that way in the html markup.
Mark
-
Sorry for the ambiguity. Windows has a ContentAlignment property that aligns the text in a control from TopLeft to BottomRight, and also middles. I know that using CSS you can align textual content using the div as a container. I was wondering if there is a way to use the ContentAligment property values from a Windows form to set the div container css. So if the user selects MiddleLeft the text is aligned that way in the html markup.
Mark
I understand now. You may want to check out the following URL: Hosting a Windows Control in a Web Form by Tim Stall
-
I understand now. You may want to check out the following URL: Hosting a Windows Control in a Web Form by Tim Stall