LeonLatex Posted October 9, 2021 Share Posted October 9, 2021 (edited) a litle problem with my external script. It seem s like it is a difference with or without quote marks on values, depending on what kind of value there is/what it's for. I cant remeber it was something like that. Below i have an example. Please feel free to copy it and write it how you would have done it. div.copyright_box { max-width: "100%"; max-height: "100%"; font-family: Consolas; font-size: "11px"; text-align: center; color: #000000; h4.headline { text-align: "center"; font-family: "arial"; font-weight: "bold"; font-size: "15px"; line-height: "10"; letter-spacing: "5px"; Edited October 9, 2021 by LeonLatex Quote Link to comment https://forums.phpfreaks.com/topic/313928-with-or-without-quotes-external-script/ Share on other sites More sharing options...
Barand Posted October 9, 2021 Share Posted October 9, 2021 Your biggest problem is the lack of closing curlies } after each style spec. As for the quotes, do them the way that works. Quote Link to comment https://forums.phpfreaks.com/topic/313928-with-or-without-quotes-external-script/#findComment-1590840 Share on other sites More sharing options...
LeonLatex Posted October 9, 2021 Author Share Posted October 9, 2021 9 minutes ago, Barand said: Your biggest problem is the lack of closing curlies } after each style spec. As for the quotes, do them the way that works. Yes i can see i have left them out here. But back to my question. Is it with the quotes mark or with out them? If there depends on where and what, please tell me when to use them and when to not use them. Quote Link to comment https://forums.phpfreaks.com/topic/313928-with-or-without-quotes-external-script/#findComment-1590841 Share on other sites More sharing options...
requinix Posted October 9, 2021 Share Posted October 9, 2021 Except for the occasional time when you "have" to use quotes, such as with font-family names that contain spaces (like "Comic Sans") or with url()s that contain unusual characters (especially parentheses), most people don't use them. Definitely not for numeric values, like 100% or 15px. That's weird. Quote Link to comment https://forums.phpfreaks.com/topic/313928-with-or-without-quotes-external-script/#findComment-1590842 Share on other sites More sharing options...
LeonLatex Posted October 9, 2021 Author Share Posted October 9, 2021 Ok, so what you you are saying is that most people dont use the quote marks at all, but there is a standardization saying use them as you described for me? Its easier for me asking here than reading through a lot of text on w3c or w3schools to find the ansver. So thank you for helping barand and requinix. Quote Link to comment https://forums.phpfreaks.com/topic/313928-with-or-without-quotes-external-script/#findComment-1590843 Share on other sites More sharing options...
requinix Posted October 10, 2021 Share Posted October 10, 2021 You're caring a lot about something that doesn't matter. If you want to avoid work, such as learning for yourself, then try not using quotes ever. Eventually you'll find a case where not using quotes was wrong. Then you'll know. Quote Link to comment https://forums.phpfreaks.com/topic/313928-with-or-without-quotes-external-script/#findComment-1590844 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.