Jump to content

Recommended Posts

 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 by LeonLatex
Link to comment
https://forums.phpfreaks.com/topic/313928-with-or-without-quotes-external-script/
Share on other sites

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.

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.

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.

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.