- This topic is empty.
-
AuthorPosts
-
December 10, 2016 at 11:58 am #248843ZeelousParticipant
Hello, there is a line of code that I entered into my site’s css showing on my site (in the top left corner) when I resize my computers web browser to it’s smallest possible size and also when I view the site on my smart phone. The line code is };
I only don’t see it when I’m viewing the website as an Admin!
Website: https://zeelous.com
Thanks in advance!
December 10, 2016 at 12:53 pm #248844BeverleyhParticipantYou have a lot of CSS snippets scattered throughout the HTML (probably what’s causing the issue here). You should move them to the correct place – either inside a stylesheet or into the head section.
December 10, 2016 at 1:31 pm #248845ShikkedielParticipantDecember 10, 2016 at 1:42 pm #248846ZeelousParticipantHello guys, thank you so much for your quick replies i really appreciate it. But unfortunately I’m not familiar with programming and all this stuff! I wish you could still help me solve this issue.
Actually I’m using Shopify as a website builder, and I have this code in header.liquid:
<style>
.site-header__logo img {
max-width: {{section.settings.logo_max_width | default: ‘180’ | remove: ‘px’ | append: ‘px’}};
}
</style>Someone told me that i’m forcing styling the element under the header.liquid under sections at the very top but i did not understand what that means.
December 10, 2016 at 1:55 pm #248847I.m.learningParticipantShikkediel showed the extra }; in your code.
December 10, 2016 at 4:56 pm #248853ShikkedielParticipantSomeone told me that i’m forcing styling the element under the header.liquid under sections at the very top but i did not understand what that means.
I think it is the same as Beverleyh mentioned,
<style></style>
tags are only valid inside the<head></head>
section of the document. If you go to your page, right click and choose “view source” (or something similar) then you’ll see that there are styles insidebody
. That’s not correct HTML but modern browsers are usually smart enough to cope with it.To solve the issue of the character showing up, you’ll have to find a way to purge it from the document…
December 10, 2016 at 7:55 pm #248855SenffParticipantThe Google Tag manager code (that Shikkediel posted above) contains a
<script>
within the<script>
, that’s pretty much where things went wrong.December 10, 2016 at 9:37 pm #248856ShikkedielParticipantAh yes, you are right. It’s not the bracket and second closing tag that are abundant but the earlier script tag is the culprit. Well caught.
a stray character (and tag)
December 11, 2016 at 12:08 pm #248871ZeelousParticipantHi everyone, thank you so much for your help, it worked!!
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.