Hi spil778,
Good day!
You can center your text with CSS' "text-align" property and defining the "value" - center.
It's like this:
element {
text-align:center;
}
...where "element" is the element to where your textNode is being contained.
However, this will not work for "inline-elements". It would better work with "block-level" elements. Best example would be:
- Code: Select all
<p>Text in the center</p>
...and the CSS would appear like:
- Code: Select all
p {
text-align:center;
}
On the other hand, to center an element, you can use the "margin:auto;" technique, but I don't want to fill you up with a couple of info as it might confused you.
Hope that helps.