Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

I can't modify the postion of a image with tailwind-css and reactJS

hello i got a problem whatever i try to move my picture it doesnt move i’m kinda new to typescript and react

import { zodResolver } from "@hookform/resolvers/zod"
import { useForm } from "react-hook-form"
import {Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage,
} from "@/components/ui/form"
import { Input } from "@/components/ui/input"
import { Button } from "@/components/ui/button"
import { SignupValidation } from "@/lib/validation";
import { z } from "zod";


return (
    <div>
        <Form {...form}>
          <div className="sm:w-420 flex-center flex-col">
            <img src="/assets/images/image2vector.svg" alt="logo" className="ml-100 sm:ml-0" />
          </div>

i tried to change the values but no success

this is what it gave me image.png

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You have not used the margin-left property the right way.
There is no ml-100 in the official documents of tailwind.

Try this one to set the margin-left:100px; for screens above small screens (above 640px) and for small screens (upto 640px) margin left will be 0. I guess you intend to do that from your code.

  <img src="/assets/images/image2vector.svg" alt="logo" className="block ml-[100px]" />

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading