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 »

Css if the char exceeds 60 then it should be in next line(including space)


Posted Date: 21 Oct 2009      Posted By: Kumar R      Member Level: Gold     Points: 1   Responses: 4



hi .......

i need the css to apply div tag.

line should not exceed 60 chars(including space)





Responses

Author: praveenjayapal    21 Oct 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Hi Kumar,
You can use javascript regular expression for this situation



Author: Kumar R    21 Oct 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

is it possible to limit in css


Author: Chandru    21 Oct 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

Hi Try like this,

function split()
{
var string = docuent.getElementById('div').innerText;
if (string.Lenght > 60)
{
string.slice(61,-2);
}

Chandru
SilverlightScripting.com



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

Hi Kumar i dont think that is possible in CSS as per my knowledge. Css is used only for styling not for handling any of the functionalities on the pages. :)

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



Post Reply
You must Sign In to post a response.
Next : Send emails
Previous : Only TBODY to scroll
Return to Discussion Forum
Post New Message
Category: HTML

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use