with elemets inside ....">
C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » HTML »

How to assign boders for the elements inside the TD in html


Posted Date: 29 Oct 2009      Posted By: kumar      Member Level: Gold     Points: 1   Responses: 5



hi,
i have table unser it i have one td
<td id="menu">

</td>

with elemets inside the menu are coming dynamically from database that is .cs(c#) file i am assging the values
ex: i have admin, user, manager like these
now i need to assign vertical boder b/w them inside the td like this

|admin| user |manager|
as the elements are cmg dynamicallly how to assign border in between them
any solution on this would be great
thank you





Responses

Author: vipul    29 Oct 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

Hi,
for that you can do this way
<table>
<tr>
<td style="border-left:1px solid" id="menu">admin
</td>
<td style="border-left:1px solid" id="menu">user
</td>
<td style="border-left:1px solid" id="menu">manager
</td>
</tr>
</table>

Please Rate This Answer If They Helpful

Thanks & Regards
Patel Vipul



Author: Venkatesh Ellur    29 Oct 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Hi

Kumar what are the elements that you get from the C# file if you know the elements you can apply the css in C# for those elements and design the class for everything you need.

THIS POSTING IS PROVIDED WITH NO WARRANTIES, BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT AS PER MY KNOWLEDGE, NOT TRIED IT.

Regards
--------------------------
Venkatesh Ellur
+919886417764
venkatesh.ellur@gmail.com



Author: soniya bhatia    29 Oct 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

Hi,

Do that,


<table>
<tr>
<td style="border-left:#000000 1px solid" id="menu">admin
</td>
<td style="border-left:#000000 1px solid" id="menu">user
</td>
<td style="border-left:#000000 1px solid" id="menu">manager
</td>
</tr>
</table>

or make a css class for no repeatation in every td

.border
{
border-left:#000000 1px solid;
}



Author: Manindra Upadhyay    11 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Use should use border="1" in table .


Author: abdul rahim    16 Nov 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

just use border function in table
ex:<td border = "5">simple</td>

u need more knowledge regarding html then visit below link
www.w3schools.com



Post Reply
You must Sign In to post a response.
Next : Div problem using css in mozilla and firefox
Previous : How to integrate content management system with my current website
Return to Discussion Forum
Post New Message
Category: HTML

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use