开发者

HTML Divs making stuff go down?

EDIT: FIXED I CHANGED IT TO

this is my code

Account Type: <div id="accounttype" class=inline-block"><strong><?=$_SESSION['accountt开发者_如何转开发ype']?></strong></div>

Now on my site it shows like this

account type:
personal

but without the div it shows like this

account type: personal

how can i make it WITH the div show like this

account type: personal


Try:

Account Type: <div id="accounttype" style="display:inline-block"><strong><?=$_SESSION['accounttype']?></strong></div>

Or more appropriately:

Account Type: <span id="accounttype"><strong><?=$_SESSION['accounttype']?></strong></span>


Wrap Account Type: in a div with style="float:left"


Try this; Account Type: <div id="accounttype" class="inline-block"><strong><?=$_SESSION['accounttype']?></strong></div

just you should use " after class=

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜