开发者

HTML Divs making stuff go down?

开发者 https://www.devze.com 2023-03-27 23:38 出处:网络
EDIT: FIXED I CHANGED IT TO this is my code Account Type: <div id=\"accounttype\" class=inline-block\"><strong><?=$_SESSION[\'accountt开发者_如何转开发ype\']?></strong></

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

精彩评论

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