Help - Search - Members - Calendar
Full Version: Html widget
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
Domj
Hi I hope someone can help. I'm using a brolmo html widget on the site www.newquayairport.co.uk however the widget isn't showing up on mobiles. There support stated it was the following issue with the website...

The issues is caused by a rule of your CSS file
- /onewebstatic/7d1dac24b5.css
In this file you have class with this URL:
.mobileViewLoaded .row {
display: none !important;
}
[indent]
If you comment it out the script will show.


However nobody is able to tell me how to edit the code to "comment it out"
I have tried // at the start to no avail. Any help will be gladly appreciated.
Dom
Christian J
In CSS the comments look like this:

CODE
/*  
this text is commented out
*/
Domj
Thanks for the speedy reply so just to clarify /* goes before the entire code*/ or just around none. /* None*/
Thanks again
pandy
QUOTE(Domj @ Feb 12 2020, 01:29 AM) *

Thanks for the speedy reply so just to clarify /* goes before the entire code*/ or just around none. /* None*/
Thanks again


Better comment out the whole line or whole rule even, if that's all there is in it. In case you don't want to delete it.
CODE

/*
.mobileViewLoaded .row {
display: none !important;
}
*/
Christian J
QUOTE(Domj @ Feb 12 2020, 01:29 AM) *

Thanks for the speedy reply so just to clarify /* goes before the entire code*/ or just around none. /* None*/
Thanks again

Just around: /* starts the comment, and */ ends it.
pandy
I think Domj mean if he could do it like this.

CODE
.mobileViewLoaded .row {
display: /* none */ !important;
}


Which is possible, but it leaves 'display: !important' which looks rather fishy even if it probably doesn't harm anything.

I'd do the below as a minimum. But as the rule seems to be used for nothing else, it's cleaner to remove the whole thing.

CODE
.mobileViewLoaded .row {
/* display: none !important; */
}
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2020 Invision Power Services, Inc.