Hi,
I have a literal control in my code used to display the Welcome text message when a user is logged in.

I'm having an issue with this because I would like to position it in a different place using an external style sheet.

Is it possible to do this? I would like the control to float right while the navigation control floats left.

I read on 2 different websites that it's not possible to style or position the Literal Control. Is this true? If so, is there a way around it?

Any help would be great!!!!

Text from MSDN:

The Literal control differs from the Label control in that the Literal control does not add any HTML elements to the text. (The Label control renders a span element.) As a consequence, the Literal control does not support any style attributes, including position attributes. However, the Literal control enables you to specify whether content is encoded.

I have read this... is there something else I can do?

You may add markup directly to the page.

Literal1.Text="<p class='CssTest'>some text</p>";
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.