So I have the following code:
<h3>
<div class="sellertitle"><a class="allseller" href="#">Something</a> </div>
<?php if ( is_user_logged_in() ) { ?>
<div class="otherseller"> <a class="allotherseller" href="#">Else</a> </div>
<?php } ?>
</h3>
Then, for the "sellertitle," I have the following CSS:
<--logged in-->
.sellertitle {
float: left;
width: 49%;
}
As you can see, "Something" is always visible and "Else" is only visible when the user is logged in.
However when the user is logged out, I want the "sellertitle" CSS to be "float:none"
<--logged out-->
.sellertitle {
float: none;
width: 49%;
}
What would be the best way to achieve this?