Shifting a dropdown box to a different side of the page?

I have a dropdown box that appears automatically on the left side of the page and I have been using the ‘Margin’ element to try and move the element but it doesn’t work. I have also looked through several other elements to try and move dropdown box but nothing has worked.

Is there a element that can help me achieve this?

If this makes any difference, I have laid out the html below.
My goal is to switch the label & select elements to the right side of the page via CSS commands

<div class="ronaldinho-shoes">
        <p>Ronaldinho Tiempo's</p>
        <img src="./resources/images/3081412.jpg" alt="Ronaldinho for Barca in 2006" width="400" height="200"> <img src="./resources/images/ronaldinho tiempos.jpg" alt="ronaldinho tiempos" width="400" height="200"> <span>2015 Nike Ronaldinho Tiempo Legend 5 "Touch of Gold"</span> <br>
        <p class="shoe-description">White/Gold</p>
        <p class="price">$300</p>
        <p class="type">FG-Firm Ground</p>
            <label for="size">Choose a shoe size</label>
            <select name="size" id="size">
                <option value="7">7</option>
                <option value="8">8</option>
                <option value="9">9</option>
                <option value="10">10</option>
                <option value="11">11</option>
                <option value="12">12</option>

In my CSS file, I am able to change the backrground color, which I did to make sure the element being called was correct, which would be .ronaldinh-shoes label label {}

Have you tried align-content: right? This should move the dropdown to the right of the screen, if you call it on the parent element of the dropdown.

I may have messed the organization of the code quite a bit but I used align-content:right and nothing happened. However, i did use margins and now it’s working since I added a few elements. But thanks for the input. For now, I do not want to focus too much on specific answers and would rather not continue to discuss the matter as I still have a lot to learn and want to master the basics.

Thanks again

1 Like