toggling multiple layout - save and restore the state

53
May 23, 2018, at 12:00 PM

in my project i use multiple options for layout display - 1 column, 2 and 3. So toggling, activating and saving current state looks like inline JS function6 that toggles styles by adding classses, saving variable in localstorage and reading them after page refresh to restore classes i need.

Does it looks good enough or there is some better pattern for this kind of task?

READ ALSO
Using image as button to upload file

Using image as button to upload file

I've never done much css so I apologize if this is an obvious question but I've tried a million things and nothing's workedI currently have an image that I'm trying to use as an upload button

75
SCSS &- multiple string options

SCSS &- multiple string options

I have never usedscss files before and am trying to make a simple change

80
Why does my font face overwrite? [on hold]

Why does my font face overwrite? [on hold]

I'm trying to use multiple fonts via CSSBased on already answered related questions, I know it's possible via the @font-face rule

86
remove overlapping from images and make caption below image stretch across columns

remove overlapping from images and make caption below image stretch across columns

I have been struggling with trying to make text sit correctly on the pageWhat I am trying to do is is be able to provide images and captions on this semi-calendar, but make the image and caption extend through multiple columns

56