0

I'm working on a new design and have been stuck on a design aspect which appears to only be fixed with some connection to the css attribute overflow, that or some form of javascript.

This is how my site boxes would normally look:

enter image description here

But if a screen is too small, this is how it looks:

enter image description here

So would it be better to fix this problem with css or javascript?

guradio
  • 15,524
  • 4
  • 36
  • 57
Matthew
  • 1,565
  • 6
  • 32
  • 56
  • Welcome to Stack Overflow! Questions seeking code help must include the shortest code necessary to reproduce it in the question itself. Although you have provided a link to an example or site, if the link were to become invalid, your question would be of no value to other future SO users with the same problem – Mukesh Ram Jun 22 '16 at 05:48
  • You should do this using css only. JavaScript would be overkill. – Randy Jun 22 '16 at 05:52
  • @randy - gotcha, I have fixed it with css, figured someone would tell me which was the either more difficult/exhausting idea. Thanks! – Matthew Jun 22 '16 at 06:46
  • @MukeshRam - in the future, since this is just a local site (for the time being) would it be helpful to post just the specific html and then all of the css? And thanks for the welcome! – Matthew Jun 22 '16 at 06:47
  • @Matthew Post the [minimum HTML and CSS required](http://stackoverflow.com/help/mcve) to reproduce. Preferably in a [snippet](https://blog.stackoverflow.com/2014/09/introducing-runnable-javascript-css-and-html-code-snippets/), not external ( like JSFiddle ) – Randy Jun 22 '16 at 06:48

2 Answers2

0

You can fix this by updating the CSS file code, Please check the CSS float change for mobile size in the below link.

CSS floats, change order on mobile layout?

Community
  • 1
  • 1
josdev
  • 81
  • 1
  • 11
0

I don't know exactly where your problem because your not post your code/fiddle/website. But it be better to fix your problem using CSS, because it happen to your style. Try to make different style on different size screen. hope this link help you CSS Media Screen

Engkus Kusnadi
  • 2,386
  • 2
  • 18
  • 40