how to use Align property

Posted by Skaftabali under CSS 3 on 11/7/2010 | Points: 10 | Views : 1578 | Status : [Member] | Replies : 6
Hi,



i have a table.In this table i use one back button.
like
<table style="width:auto" cellpadding="10" cellspacing="10">
<tr>
<td width="60px" class="forback"></td>
<td width="60px" class="forback"></td>
<td width="300px" class="forback"></td>
<td width="78px" class="forback"></td>
<td width="100px" class="forback" style="border:1px solid red">

<asp:Image ID="Image2" runat="server"
ImageUrl="~/images/arrowEn.gif" Height="10px" Width="15px"/>

<asp:LinkButton ID="lblbackcomn" runat="server" Text="<%$ Resources:Homemaster,lblbackcomnltr%>" onclick="lblbackcomn_Click">
</asp:LinkButton>

</td>
</tr>
</table>
this is class item i used in css
.forback{float:right; text-align:right;}
I want change direction of that button.
when i click Arabic botton.
Pls help me its very urgent




Responses

Posted by: Prasham on: 11/7/2010 [Member] Starter | Points: 25

Up
0
Down
Hello,

One option is in click event you can directly use like

lblbackcomn.Attributes.Add("cssClass", "forback[Your css class name]");

another option is write one generic javascript method, pass the controls clientid and css class name and call this method on OnClick event of link button.

Hope the above suggestions will give you some hint.

Thanks and Best Regards
Prasham

Skaftabali, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 11/7/2010 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
Good Day Skaftabali

Please do not post the same question twice, if you want to update it , just update only one dont create a new post.

Thanks

Thank you for posting at Dotnetfunda
[Administrator]

Skaftabali, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shraddhapatel on: 6/6/2019 [Member] Starter | Points: 25

Up
0
Down
<!DOCTYPE html>
<html>
<head>
<style>
div.a {
text-align: center;
}

div.b {
text-align: left;
}

div.c {
text-align: right;
}

div.d {
text-align: justify;
}
</style>
</head>
<body>

<h1>The text-align Property</h1>

<div class="a">
<h2>text-align: center:</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut.</p>
</div>

<div class="b">
<h2>text-align: left:</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut.</p>
</div>

<div class="c">
<h2>text-align: right:</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut.</p>
</div>

<div class="d">
<h2>text-align: justify:</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut.</p>
</div>

</body>
</html>


ASP.NET Software companies
www.ifourtechnolab.com

Skaftabali, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sunnysunny on: 6/10/2019 [Member] Starter | Points: 25

Up
0
Down
I enjoyed over read your blog post. This was actually what i was looking for and i am glad to came here!

https://shell-shockers.online

Skaftabali, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Manideepgoud on: 6/10/2019 [Member] Starter | Points: 25

Up
0
Down
Nice one,

you may also refer below link

http://www.dotnetfunda.com/codes/show/8060/how-to-use-rowspan-and-colspan-in-html5

Skaftabali, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Parth123 on: 6/16/2019 [Member] Starter | Points: 25

Up
0
Down
$('#lblbackcomn').click(function() {
$('#lblbackcomn').css({
'float': 'right'
});
});

ASP.NET Software development companies
[url]https://www.ifourtechnolab.com/[/url]

Skaftabali, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response