Click here to Skip to main content
15,913,486 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello guys,

Suppose I have a Div tag and class as Headings which is just a straight line filled with color and width is like an inch. Can I get a label on that line?
For example when you logged in, it shows name on top right corner .
Similarly I want a Name on that line which is like a width of one inch.
I am not sure If I confused you guys. But I cannot show an image.
Posted
Comments
Sergey Alexandrovich Kryukov 24-Feb-15 11:59am    
The answer is: yes; JavaScript, DOM.
"I cannot show an image..." is not informative. What image, why? And so on...
—SA
sudevsu 24-Feb-15 13:32pm    
I mean to say I cannot explain you guys better way without showing my problem. But here we cannot attach any image kind of thing.
Sergey Alexandrovich Kryukov 24-Feb-15 14:19pm    
Oh, I see; I did not correctly understand that "I cannot at first", sorry.
I used to use pseudo-graphics, other referenced images downloaded to other sites...
—SA
sudevsu 24-Feb-15 14:34pm    
Oh ok got it. Mine is not that complicated. somehow I managed to get it done to an extent.
sudevsu 24-Feb-15 13:33pm    
Can you show me an example of what I asked.
a lable on one inch width line which is a div tag using DOM

1 solution

This is what I did
XML
<div class="Headings"  align="center">
        Detailed View
        <span  style="float:none;color:white;"><asp:Label align="Right" ID="lblSTracking" runat="server" style="float:right;"></asp:Label></span>

        </div>


Just used a span in a div tag

So it looks like

Detailed View lblTracking#
on same line with proper distance so people understand detailed view of this number.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900