Layout problem when swapping eclipse for Intellij

Asked

Viewed 47 times

1

I’m a beginner and I’m in the middle of a project. Due to many build bugs, I decided to exchange the eclipse for Intellij. Import problems and bank connection solved, I can continue the project. Now I came across this situation and I don’t know where to start looking. The layout at Intellij was all messed up. It’s all messed up. From Css to directly set properties in the html element. The layout of the elements is still the same as the old project but it is not rendering in this way. An example of what happens:

<img></img>
   <div></div>

In that case the image would have to be on top of the div, but that’s not what happens. It sits underneath or overlapping in some cases, and that happens with virtually every element. In short, the arrangement of the elements is the same and was aligned in the eclipse, now in the intellij nothing works being the same.

Is there a setup for this? What I should research I don’t know where I start and I haven’t found anything yet about.

  • Cesar, did you only change your IDE? Or did you change your browser too? Is the version of the code the same? The order in which the elements appear in HTML depends on the browser and the code. I do not believe that Intellij is responsible for this.

  • Hello Rubico, the browser and the version are the same. In the absence of a problem similar to mine for query, I am set all properties of the layout from scratch. So little by little the thing is settling down. But I still don’t understand why this.

  • When you migrated to Intellij, your folder structure probably changed. Maybe it’s changed in a way that your css files aren’t being loaded. Try to take a look at the console if you are getting any 404 for your CSS files.

  • Yes, I did everything in hand the structure. I had problems to create Gradle in the project so when I could, I created all the folders in the same hand. But I was careful to look at everything in the application, and the css is there. What happens is that some properties are simply not being loaded. Others the intellij set as error. As for example window auto; It did not accept this value 'auto', gave error.

  • When it puts as error, it does not prevent it from working in the browser, as I said before. You have checked if you are catching any 404 in CSS?

  • Checked, no errors in the browser, even setting the property directly in the element it does not seem error in the browser. And with the property set in the element the error message in Intellij is from Unknown Css Property window.

  • It is not a matter of error in the browser, if you are using Chrome it does so. Press F12 > Network Tab. Reload the page and see if it won’t point 404 on some of your css, usually 404 are not pointed at the console and spend spend spend spend.

  • Okay, I’m using Rome. I did it here but nothing came up. I’m already resigned and I’m changing everything in my hand. It’s the price I paid to not bother me anymore with the eclipse full of bugs.

Show 3 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.