CSS inline issue

Posted In HTML & CSS
  • lincon-lincon 6 months ago
    Hello everyone,,
    I hope this is the right subreddit for this, [https://xvideos.onl/](https://xvideos.onl/) please redirect me if not, but I have a small issue I can't seem to solve. Basically I have a heading and I want a button to appear [https://xnxx.onl/](https://xnxx.onl/) next to it if logged in. I have the conditional solved, but the placement of the button is causing me an issue, I can't [https://chaturbate.onl/](https://chaturbate.onl/) get them on the same line and keep the heading where it is. Here is the relevant code. I have them both in a div, as using float moved my whole page over and that's not what I wanted either.
    
    html
    
    <div class="update">
      {% if user.is_authenticated %}
      <input class="button" type="button" onclick="location.href='/create/'" value="Create Post">
      {% endif %}
      <h1>Updates</h1>
    </div>
    css
    
    update.h1{
      display: inline-block;
    }
    
    update.input{
      float: left;
    }
    

    Hello everyone,, I hope this is the right subreddit for this, https://xvideos.onl/ please redirect me if not, but I have a small issue I can't seem to solve. Basically I have a heading and I want a button to appear https://xnxx.onl/ next to it if logged in. I have the conditional solved, but the placement of the button is causing me an issue, I can't https://chaturbate.onl/ get them on the same line and keep the heading where it is. Here is the relevant code. I have them both in a div, as using float moved my whole page over and that's not what I wanted either.

    html

    update.h1{ display: inline-block; }

    update.input{ float: left; }

Please login or signup to leave a response.

Login

or Sign Up

Sign Up

or Login
×
Want to create your own SAAS?

I can teach you to create your own Software as a Service. Click here to learn more!

Visit SAAS Adventure!