O
O
olezko2014-07-28 13:16:44
CMS
olezko, 2014-07-28 13:16:44

how to change html in php class

Let's say I have a php code that contains html:

<div class="n0upload" data-field="'.$n0xf_option['field'].'" data-multiple="'.($n0xf_isMultiple?'1':'0').'">
  <div class="n0fileContent">
    <div class="n0uploadProgress" style="display:none"><div class="bar"></div></div>
    <div class="n0uploadList">'.$n0xf_files.'</div>
    <span class="clearfix"></span>
    <div class="n0uploadAct"'.($n0xf_isShowAct?'':' style="display:none"').'>
      <div class="n0uploadFile">'.$lang['xfieldupload_file'].'</div>'.($n0xf_option['urlfile']?'<div class="n0uploadUrl">'.$lang['xfieldupload_url'].'</div>':'').'
      [not-optional]'.$lang['_xf_notig'].'[/not-optional]
    </div>
<input rel="essential" class="n0field" type="'.(function_exists('echoheader')?'text':'hidden').'" name="xfield['.$n0xf_option['field'].']" value="'.$xfields_upload_value.'" />
  </div>
</div>
<br>
<!--hs.expand-->

But when you try to change it radically (something to put in one direction, and something in the other), nothing happens.
Now:
cf4391eecd5b4cb5ba2d6c16f5743777.png
Must:
78699ee7f6a14a4b9c9db990a79d7e27.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yuri Lobanov, 2014-07-28
@iiil

Try to enter a comment or any block in html - if nothing has changed, then either caching is to blame, or you are changing it in the wrong place. If a new html has appeared, then open the chrome or firebug debugger and see what styles are responsible for what.
You show screenshots and html, but you don’t show what is directly responsible for positioning (in the absence of inline styles), that is, css - it suggests that you did not take up your work.

A
Artur Smirnov, 2014-07-28
@artursmirnov

I assume that you need to change the CSS, not the HTML. In particular, you probably need to add:

.n0uploadAct {
    float: right;
}

K
Konstantin Khairov, 2016-09-13
@Kaylos

Why not try to do it with CSS?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question