converting javascript code into html output? -


I can use JavaScript to appear HTML tags and divisions, but I put some text into a div Want to {/ Tag> "div", id: "tabs", childs: {{tag: "div",} {tag: "div", className: "panel", id: "tabs", childs: {Tag: "div", className: "tab_left"}, {tag: "div", classname: "tab_middle", {tag: "div", className: "page_button", classname: "box" "tab_right"} ]},]

How do I add text to it? I want to:

  & lt; Div class = "tab_title" & gt;  

I use sample text & lt; / Div & gt;

Tab_middle to appear in my html within the div tag with the classname tab.

How do I get it?

In addition, if I create many of these "tab-titles" with sample text, then how can I assign them to the center of the screen.

Thank you very much. As you can tell that I have javascript on E though i have some basic HTML knowledge thanks hope that someday somebody can fight through all the books

To add text: {tag:" div ", className:" tab_title ", inner HTML:" sample text "} , some javascript libraries "HTML" instead of "Inner HTML".

@Edit: On the screen, CSS should be: .tab_title {width: ...; Margin: 0 auto;} . You need to set a clear width to focus on the left / right auto margin. If you just want text in Divorce centered, then .tab_title {text-align: center} .


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -