Closed hoyere closed 10 months ago
Hello @hoyere,
Are you using the latest version? Version 2.0.9 (October 20)
If you use the Adaptable copy mode, DivMagic will do optimizations to provide the smallest amount of copied code.
This may result in styles that look slightly different from the source.
Using the Exact copy mode should give you the exact alignment you see on the source website. However, I highly recommend that you use the Adaptable copy option. Even if the copied style is different than the source, you can make minor modifications to the CSS to get the desired output.
The purpose of DivMagic doing modifications on the style is to give you the smallest possible code output so you can customize it fast for your own website.
If you have any further questions or issues, please don't hesitate to reach out. We're here to help!
That seems to have done the trick
I am fairly new to Tailwinds, and I am running a nextjs project. However when I use DivMagic the alignment is off. When i put the code onto a page it is inline vertical rather than retaining the the alignment across
I didnt know if it was me being new or not but I put this into GPT and it provided this. Do you know if it something I am not setting write in the extension? After GPT fixed it, it looked fine after a little adjustment on the max width and ensuring the image didnt get squished by having AI add a cover element to it.
GPT Response
The issue you're facing is likely due to the float-based layout in your original code. With Tailwind CSS, you can easily create a flexible layout using Flexbox or Grid to place the text and image side by side.
Here's how you can modify your code to make sure the text and button are on the left and the image is on the right:.....
Here, I've made the following changes:
Wrapped the whole content in a flex container. Used flex-wrap to make sure the content wraps correctly on smaller screens. Added justify-between to space out the two main divs. Assigned flex-1 to each div to take up equal space within the flex container. Now, your text and button should be on the left, and your image should be on the right, just like a typical hero section. GPT OUTPUT