Re: DIV instead of SPAN

  •  10-26-2010, 10:45 AM

    Re: DIV instead of SPAN

    Hi Adam!
    Thanks for help.
    But, It's not work when I try to use a css class to align a block.
    For example:
     
    CSS Code:
    .someCSS{
       color:blue;
       text-align:center;
       font-family:"Times New Roman",Georgia,Serif;
       "AND SO ON..."
    }
     
    HTML Code BEFORE change:
     
    <div>test</div>
    <div>test</div>
    <div>test</div>
    <div>test</div>
    <div>test</div>
     
    HTML Code AFTER change:
    <div><span class="someCSS">test</span></div>
    <div><span class="someCSS">test</span></div>
    <div><span class="someCSS">test</span></div>
    <div><span class="someCSS">test</span></div>
    <div><span class="someCSS">test</span></div>
     
     
    So, after change, the content wasn't align. If I use DIV tag instead of SPAN tag it works!
    I think it's not possible to use "align=text" with SPAn tag. Am I right?
     
     
    One more question...
    How can I do to add more options in "FormatBlock"?
     
     
    Thanks for all!
     
View Complete Thread