If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

text alignment in javascript

i am creating family tree website for this i am using mind fusion org chart API which is opensource i customized i, i removed other extra details from in and kept only single person inside the node. i centered text inside node but text isn't wraped some text are crossed node border i want to make some margin in both side of node and text should be continue from second line when its to large. you can download my customized and mind fusion on code from links bellow:

If you head over to the CSS forum, you will see posts where help with positioning of page elements is handled by various instructions, it all depends on what the elements is, where you want it, the size colour and font sizes, etc.

There are alot of things that used to be done in JavaScript to style a page and CSS came along and took over the biggest part of the fiddly bits.

If you compared the first JavaScripts to the ones today, the early scripts were monstrous compared to the ones today that are more compact because CSS takes over allot of the styling that JavaScript used to do.

i am new to website designing i have some knowladge of software development but no much knowladge of web development i have no idea how to apply css style of javascript element may by by: document.getElementById("p2").style.color = "blue"; but this apply on whole page i want to apply style on only nodes inside page i how can i apply on only some element on on whole page ?

If you want to add link then you need to append the elements to the paragraph like this or try this code
var temp_link = document.createElement("a");
temp_link.href = "http://test.com";
temp_link.target = '_blank';
temp_link.innerHTML = "link";

this is javascript framework forum when i am typing for this reply there are displaying
"Qoucik Navigation :Javascript Frameworks(Such as JScript)" in combobox

Yes, because I moved the post from where you made it to where it is now.

Anything that uses JavaScript as its own programming language like this tool, JQuery, MooTools, etc. goes in the JavaScript Frameworks forum foun at the top of the JavaScript forum.

A simple test to see if it is JavaScript or if it is not JavaScript. If you have to include an external library, then it is not JavaScript, even though it may have javascript, that javascript can not be used, accessed or run because it is part of a JQuery or API function that requires said ecternal library file to run the code and javascript then become accessible to those functions.

JavaScript requires no external support, it is built in and native to the browser and thats the distinct difference and how to tell if something is JQuery (for example) or not.