Proper syntax of CSS 'url' attribute?

I'd like to settle this minor annoyance once and for all. I
keep seeing the
background attribute written with differing syntax when it
comes to the url,
and all of them seem to work for their respective coders.
background: url("image.gif") 0 0 no-repeat;
background: url('image.gif') 0 0 no-repeat;
background: url(image.gif) 0 0 no-repeat;
Is there a 'right' way?
(Or should that be "right" way? Arg.)

Maybe just an explanation of what the post meant would be
good! 8)
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Michael Fesser" <[email protected]> wrote in message
news:[email protected]..
> .oO(dunwellguitar)
>
>> I'm not sure on the "right way" but in general I
have always opted for
>> the one
>>that still works and has the least typing. However,
in this case I've seen
>>the
>> background: url(image.gif) 0 0 no-repeat;
>> flavour one break when it gets involved in longer
lines with other
>>parenthetical groupings, so I just settled on the
double quote one as my
>>default.
>
> Got an example for such "breaking"?
>
> Micha

Similar Messages

  • I need to know the proper syntax for my SELECT query, please.

    Hello All,
    Quick one for you:
    Let's say that I have several columns in a table with names such as subject_1, subject_2, subject_3, etc. The table's name is subject_names.
    The number in each of the three column name examples is also a value passed along a query string, the user can select choices, 1, 2 or 3. That query string's variable is $qs.
    So, what I want is a SELECT query that uses the query string value as follows (KEEP IN MIND, I know this is not the proper syntax):
    "SELECT subject_[$qs]
    FROM subject_names";
    I have tried all sorts of cominations of quotes (single and double), dots, brackets, braces and parenthesis. I just want to know how to include such a variable within this code.
    Any and all help is sincerely appreciated!
    Cheers,
    wordman

    Well, I did give you the syntax though.
    $query = 'SELECT ' . $qs . ' FROM tbl_name';
    I put spaces between the periods this time to make it more clear.
    If you put the actual word 'subject' in there and just want your form to name it's options as the numbers available you could do this:
    $query = 'SELECT subject_' . $qs . ' FROM tbl_name';
    In PHP you can use either single or double quotes around your query string, I always just use single quotes. I see a lot of other use double quotes.
    Double quotes would look like:
    $query = "SELECT subject_' . $qs . ' FROM tbl_name";
    Or when using double quotes you can actually just place the variable right in the string without having to concatenate multiple strings like above.
    Since you mentioned that you are good with passing variables I probably don't have to mention that you need to set the value attribute of your option tags (if you are using a select) to the value you want them to pass.
    Ex:
    <select name="choices">
         <option value="1">1</option>
         <option value="2">2</option>
         <option value="3">3</option>
    </select>
    If you have that part all figured out then you can use the syntax above for your query string.
    Good luck.

  • Alternate CSS URL - Error when mapping to another site collection

    I have created a .css file which I have attached on the root Site Collection (https://intranet.domain.com.au) using Site Settings> Master Page> Alternate CSS URL> Specify a CSS... and I have attached
    my file.  So, that all works fine.
    I have then tried to attach this CSS file on another site collection - say
    https://intranet.domain.com.au/sites/Site - but when I browse to this site, I get IE saying
    "Only Secure Content is Displayed".
    I did find a TechNet article saying to change browser settings in Security> Trusted Sites> Custom Level> Display Mixed Content> Enable - but this didn't seem to make any difference.
    I would prefer to map just the one CSS file so that when any changes are made, it replicates to this site collection.
    Any pointers?

    Hi,
    If you would like to apply one CSS file to multiple sites, here are two methods you could use:
    1.      
    Place the css file in layout folder, and apply it in master page
    http://sharepoint.stackexchange.com/questions/81372/alternate-css-url-point-to-layouts-15-folder
    2.      
    Place the css file in layout folder, and create a solution with control element
    http://sharepoint.stackexchange.com/questions/75480/what-is-the-proper-way-to-add-custom-css-javascript-sharepoint-2013-site
    For more information:
    http://www.ashokraja.me/post/Refer-Scripts-and-CSS-Style-Sheet-in-SharePoint-2013-Visual-Web-Part-and-Master-Page.aspx
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Using a Variable in HttpService url attribute

    I have a dynamic url defined below
    public var forecastURL:String = "
    http://www.weather.gov/forecasts/xml/SOAP_server/ndfdSOAPclientByDay.php?lat="
    + latitude + "&lon=" + longitude +
    "&format=12+hourly&startDate=" + todaysDate +
    "&numDays=" + numberDays + ""
    I would like to use the var without the {} bind. The compiler
    complains if the url is not surrounded in quotes. This should be
    simple? How can I use a var within the url attribute without the
    bind brackets?
    <mx:HTTPService
    id="forecastRequest"
    url = "{forecastURL}" result="resultHandler(event)"
    />

    Not Possible..why don't you use the subtitle box instead of help url?

  • Proper syntax of the file name to attach files in FNDATTCH.fmb

    Can you please tell me the proper syntax of the file name to attach files in FNDATTCH.fmb ?
    i am not able to open attached document if it contains & in the file name..So i wanted to know the rules to give the file name

    This has nothing to do with the TB display.  You should repost in the computer forum

  • What is proper syntax for using PassBack in a Report page select statement

    In my select statement I reference the passBack function using:
    onClick="javascript:passBack()"
    In my Page Header I (Typically) define the passBack function as:
    <script language="JavaScript" type="text/javascript">
    function passBack(passVal1,passVal2) {
    opener.document.getElementById("P2000_CABLE_ID").value = passVal1;
    opener.document.getElementById("P2000_CABLE_LABEL").value = passVal2;
    window.opener.location.reload(true);
    </script>
    But I have never used the passBack function from the Select statement before and cannot happen onto the proper syntax.
    The Page Items I want to pass are:
    1. :P2004_CABLE_ID
    2. :P2004_LABEL
    I want to pass them to:
    1. :P2000_CABLE_ID
    2. :P2000_CABLE_LABEL
    Can someone please help me out... Again?
    Thanks- Gary

    Let's assume column XYZ has both numbers (1), and letters (any alphabet).
    I have a case statement on SQL to turn any value that's not 1 into 0, then I am getting a sum of that column.
    I am also grouping by Row A, B etc to get aggregated sum of column XYZ for those group.
    Now on Crystal Reports function, I need to sum up values under column XYZ for all the groups.
    If I try using sum function like below, I get an error stating:
    "A number field or currency amount field is required here"
    (sum({Command.XYZ}))
    So I thought if I can use a case statement to change the non-numbers to 0 prior to sum that will probably resolve it. But I could not get the below case statement to work either (Error: A string is required). 
    SELECT {Command.XYZ}
       Case 1:
          1 
       Default:
          0;

  • Robohelp 8 & CSS Class attribute

    I have been trying to use the CSS Class attributes but it doesn't seemed to be recognized by Robohelp 8. Here is an example of my code:
    My external style sheet:
    Test {
              width: 562px;
              height: 16px;
              text-align: center;
              font-family: Arial, Helvetica, sans-serif;
              font-weight: bold;
              color: #ffff00;
    Test1 {
              background-color: #00900;
    Test2 {
              background-color: #008000;
    In my file:
    <link rel="Stylesheet" href="layout.css" type="text/css" />
    <div class="Test Test1">
         I type something here
    </div>
    The text that I type is rendered but none of the formatting.  What am I doing wrong?
    Does anyone know if there is a problem with Robohelp 8 not supporting CSS classes?
    Thanks!
    Message was edited by: Lakooli

    Hi,
    Add a dot (.) before the class definitions in your css:
    .Test -> All elements that have the class test
    Or even better:
    div.Test -> Only DIV element that have the class test
    Greet,
    Willam

  • Proper syntax when binding a boolean to a view node

    What is the proper syntax for binding a nodes visability (or any variable that can be bound) to a boolean variable.
    There are three choices, tell me which of the fallowing is proper.
    var loginPassed: Boolean = false;
    var loadingBox: VBox = VBox {
        visible: bind if (loginPassed) then true else false
        content: [loadingLabel,progressIndicator]
    var loaddingBox: VBox = VBox {
        visible: bind loginPassed
        content: [loadingLabel,progressIndicator]
    var loadddingBox: VBox = VBox {
        visible: loginPassed
        content: [loadingLabel,progressIndicator]
    }Let me know and thanks

    Yes it seams that the problem was not with my bind of the content. The error was actually occuring when running in browser mode. At start up the program was throwing an odd exception. Showing in the stack trace were traces of Node and boolean.
    The error was being thrown when I had Control.TextBox as my default input focus.
    After changing the TextBox to a SingExtension.TextField the error went away.
    I will try to reproduce the error and post in a seperate thread.

  • Issue with URL attribute in Header

    Hi,
    I am facing an issue with the URL attribute.
    I have created an header attribute #HDR_TEST_URL and selected the type as URL.
    Given a default value as http://www.google.com as the url
    Associated this attribute to the Notification message.
    But in the notification, the URL is being shown as the plain text not as a link.
    Can you please let me know what I am missing here.
    Thanks

    Please check the notification format if it is text then it might not be shown as a url but if it is HTML it might show up, if it is not showing then i would recommend using the anchor tag to create the Hyperlink.
    Regards,
    Varun

  • CSS URL vs. F5 Big-IP

    Can anyone tell me the difference in performance between CSS URL switching and F5 Big-IP?
    TIA

    Murabi,
    You will what to look at http 1.1 performance numbers not just the number of connections you can handle. See the follow url for the CSS 11000 independant performance testing http://www.zdnet.com/etestinglabs/stories/main/0,8829,2462091,00.html

  • Proper Syntax -- Src-Addr Filter IPS Signature Tuning

    Anyone know what the proper syntax to define Src and Dest addresses within a Signature? I am trying to define the default Private IP ranges as src addresses in signature 3030 and keep getting errors regarding the syntax.
    I have tried ip/netmask and defining the netmask as 255.255.0.0 and so on.

    Many Thanks for the reply!
    I searched the manual and this site up and down for that information and didn't find it documented anywhere.

  • Proper syntax???

    I was trying to find out the proper syntax for the following select statement. I just started JSP and cannot find info on this. Is this proper?? --
    String Pass= request.getParameter("Password");
    String sql = "Select WEB_USER_ID FROM WEB_USER_INFO WHERE UserName = Pass";
    Thank you for the help!!

    I tried that and got the following error. The asdfasdf is what I typed in the password field.
    500 Servlet jspservlet: unable to service request: [Sybase][ODBC Driver][Adaptive Server Anywhere]Column not found: Column 'asdfasdf' not found

  • Can anyone tell me the difference in performance between CSS URL switching

    first
    Can anyone tell me the difference in performance between CSS URL switching and F5 Big-IP?
    second
    Can anyone tell me the difference in performance between CSS URL switching and alteon ?
    third what is best overally?
    i think alteon is best
    is that right?
    best regard

    It looks like the primary question here is performance, in which case:Performance is not an issue, so long is it is sufficient. In the case of CSS 11000 and Alteon, performance fall within the same order of magnitude (supporting web sites with several billion hits per day.) F5 does not have sufficient performance, due to platform and OS limitations (I’ve heard as low as 50 connections per second in complex configurations). The Cisco CSM posts up over 10x the performance at 200k flows/second.
    Typically the primary concern is features, then CSS 11000 switches lead with a wide and flexible array of features that are not only helpful to network and web administrators, but well integrated too. CSS 11000 switches offer configuration through CLI, Web GUI, and XML. CSS 11000 collects statistics that can be exported to non-Cisco applications for billing and management.
    The CSS11000 also supports URL load balancing and HTTP header balancing within one content rule, with complex matching. Further, it supports user agent, pragma/no-cache, host field, cookie field, language field, accept, accept charset, accept-encoding, and Connection within the http header field.
    In addition, the CSS11000 matches up to 128 bytes with support of wildcards anywhere within the string.On the other hand, Nortel (Alteon) - HTTP header load balancing is not supported on the same VIP as URL load balancing. Eg. This means that a simulated WAP user cannot be directed to a server while load balancing "normal" browsers to their servers based on URL without using two separate VIPs. Only ONE http header load balance is supported on the entire switch. This limits you to either User Agent (WAP, Netscape, IE, Palm, etc), OR pragma/no cache (do not send the user to cache, allow (the user) to go to the origin), or Host field (allowing you to direct on domain name), or Cookie. Also, Nortel does not support the language field.
    In regards to F5, many of the performance claims are based on HTTP 1.0 requests (most web sites today are not using HTTP 1.0), Many emerging applications rely on HTTP 1.1 rather than HTTP 1.0. Also, the BIG-IP cannot spoof the connection to detect the URL, cannot do NAT on the flow, and cannot maintain states for persistent connections.
    Overall, I think CSS switches are the lowest cost to own, and most effective of all the load balancing platforms on the market.

  • Url attribute of enclosure must be a full URL

    Feed Validator told me this:
    url attribute of enclosure must be a full URL
    For this:
    <enclosure url="http://escondidoopc.org/audio/1 Thess 1,6-10.mp3" length="31023659" type="audio/mpeg"/>
    Any ideas?
    Thanks!

    Same answer as your other query. The URL stops looking like a valid one after the '/1' because of the space. You cannot use spaces in a URL. Frankly, I'd remove the comma as well. On the whole you should stick to letters, numbers, hyphen and underscore: don't use stops except where there are extensions e.g. .mp3 or .html (as you have done here - what I'm saying is don't replace the comma with a stop).

  • How to retrieve url attributes in a bsp ?

    Hi,
    I would like to create a BSP and then to be able to get and use an attribute from an url in it. Below an example because i think i'm not clear enough:
    I create a bsp ztest. And i want to access to this bsp with the following url:
    http(s)://
    Then, in the bsp i want to retrieve the parameter pmsgnb to be able to use it.
    Is this possible ? How can i do that ?
    Thanks in advance.
    Best regards,
    Stéphane.

    Hi Stef,
    because you are just starting out with ABAP I would like to give you a few tips. You may of course already know about some of this.
    When in that ABAP editor you can hit F1 at any time to get online help on the ABAP language. This is context-sensitive so if you place your cursor on an ABAP statement F1 will take you to the online help for that statement. The online help often contains sample syntax so you can see how to use the statements in your code.
    Inside the ABAP Workbench (transaction SE80) you can navigate to Environment->Examples to see a lot of ABAP coding samples with supporting documentation. For example under "Environment->Examples->ABAP Examples->ABAP Database Access->Open SQL->Read data" are over 20 sample programs showing various ways of retrieving data from the database.
    If possible go on an Introduction to ABAP training course. If not, at least buy some books on the subject. The ones that are published most recently will be more focused towards object-oriented programming and so they are more relevant than the older ones which tend to focus on SAPGUI programming and reporting.
    When learning the ABAP language remember that BSP is a special use-case for ABAP and therefore has characteristics and behaviours that are unique to it. Essentially BSP combines two different development techniques - namely ABAP and the web.
    In the SDN forums it is not a great idea to ask too many "newbie" questions. For a while you will get responses but later on the useful people will put you on their "do not respond" list. When using the SDN forums make sure you search for an anwser to your problem before posting, make sure you post in the correct forum and beware the "points junkies". These people just blast you with a huge copy and paste from their "knowledge base" in the hope you will allocate them points. They often don't really bother to read your question.
    For your specific issue I think the INTO clause needs to come before the WHERE clause.
    Try..
    SELECT GUID FROM CRMD_ORDERADM_H  INTO ls_guid_ticket WHERE PROCESS_TYPE = pmsgnb.
    Your question does raise another issue. You should try and avoid directly reading, and especially updating, the SAP database tables. This is how traditional ABAP programmers had to work, but contemporary SAP developments expose persistent data through classes, methods, function modules, etc. When trying to manipulate SAP data you should always try and find the proper way to do it, the way SAP does it, rather than directly accessing the database. This ensures you process any configured "business rules" that apply to that data, makes your program more maintainable, and minimised the chances of other changes to the system effecting the reliability of your program.
    By way of example, lets say you wanted to change a user's class to 'TESTER'. You could write code to directly modify the field CLASS in the table USR02 to do this. But the correct way to do it would be to call the BAPI for this purpose, like this.
    username = 'MUSTER'.
    logondata-class = 'TESTER'.
    logondatax-class = 'X'.
    call function 'BAPI_USER_CHANGE'
          exporting
              username          = username
              LOGONDATA         = logondata
              LOGONDATAX        = logondatax
         tables
               return           = return .
    Now, if SAP change the data model for user master records in any way you can be sure that your code will still work because they will also maintain the standard interfaces to the data model, in this case the suite of BAPI_USER* function modules.
    The other by-product of this strategy is that you maximise code-reuse and minimise the amount of code you have to write. Of course sometimes direct database access is unavoidable, even with the latest SAP delivered code. For example I am currently working for a customer in the Auto industry and I have found the SAP delivered code around Warranty Claims to be so inefficient that I have to use direct database access to get reasonable performance.
    I hope this helps you. Good luck with your ABAP.
    Cheers
    Graham Robbo

Maybe you are looking for