Css syntax question

sometimes a piece of css will look like this
#toolbar {
background-color: #313031;
padding: 5px 0px 5px 0px;
and sometimes it looks like this
.toolbar {
background-color: #313031;
padding: 5px 0px 5px 0px;
(note the # is replaced with a . )
is there any difference between the 2 ways of putting it?

cancel the last question
i think i discovered what it is
# selected ID elements
. selects class elements

Similar Messages

  • [svn] 1608: This checkin makes public our modifications to Batik, which improve how the MXML compiler reports errors in CSS syntax.

    Revision: 1608
    Author: [email protected]
    Date: 2008-05-07 17:36:02 -0700 (Wed, 07 May 2008)
    Log Message:
    This checkin makes public our modifications to Batik, which improve how the MXML compiler reports errors in CSS syntax.
    Bugs: -
    QA: No
    Doc: No
    Reviewer: Jono
    Modified Paths:
    flex/sdk/trunk/modules/thirdparty/batik/resources/org/apache/batik/css/parser/resources/M essages.properties
    flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/AbstractDesce ndantSelector.java
    flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/AbstractEleme ntSelector.java
    flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/AbstractSibli ngSelector.java
    flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/CSSLexicalUni t.java
    flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/DefaultCondit ionalSelector.java
    flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/DefaultElemen tSelector.java
    flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/ParseExceptio n.java
    flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/Parser.java
    flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/Scanner.java
    Added Paths:
    flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/AbstractSelec tor.java

  • Basic CSS Functionality Questions

    Hi,
    I have a CSS 11501 loaner on the way from Cisco, but was hoping to ask a few questions ahead of time. I am relatively new to this, so bear with me.
    I have three offices connected via a VPN between two pix devices. Local users and anonymous web traffic all funnels through the remote office. I am hoping I can incorporate a CSS box to direct traffic (via a VPN to another pix) to a third office in the event the www server at the main office is not reachable, but return to the first office when it is back online.
    I am a little confused by VIP. Right now, my domain name resolves to an IP address on the outside of my pix which NATs and sends the request on to my web server. If the CSS is behind it, do I create a VIP that maps to the actual IP of the www server, and have the pix send traffic to the VIP?
    I have read the PDFs found online, but am still a little foggy.
    Thanks,
    JM

    the Pix will have to send the traffic to the VIP.
    The VIP should be an address existing only on the CSS and that the rest of your network knows how to reach.
    The CSS will then nat to the real server ip.
    Gilles.

  • Quick CSS box question

    Hi guys,
    Firstly a very Merry Christmas to you all !
    I'm just getting to grips with converting all the text on my
    site to CSS and have a quick question.
    On some of my pages I add an 'Also see' links box aligned to
    the right - it's a CSS div tag thingy someone kindly talked me
    through once. All of my pages are built from a template with an
    editable region.
    My question is, can I add this box (perhaps with a standard
    'Also check out' title and then spaces for my links) at the
    template level? This will save me having to go to Insert>Layout
    Objects>DivTag on every page. I've tried simply adding this to
    the editable region of the template but it simply pushed the
    editable region box over to the right and then didn't appear on my
    pages
    Also, the links box would ideally appear about half way down
    my pages on the right...
    Hope you can help, many thanks in advance!
    James
    Here's an example page where I have manually added my link
    box on the right of the page...
    http://www.fyrne.com/james_journalism/Pages/Mosaic_of_the_med.html

    Your CSS link implies that the CSS file is in the Templates
    folder. You
    shouldn't have anything there other than the template (dwt)
    files
    themselves. Please move it out to any other location in your
    site.
    <link href="../../Templates/Box.css" rel="stylesheet"
    type="text/css">
    Changes made to template editable regions would not propagate
    to existing
    child pages - that's why you aren't seeing that addition in
    them....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "JamesFryer" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi guys,
    >
    > Firstly a very Merry Christmas to you all !
    >
    > I'm just getting to grips with converting all the text
    on my site to CSS
    > and
    > have a quick question.
    >
    > On some of my pages I add an 'Also see' links box
    aligned to the right -
    > it's
    > a CSS div tag thingy someone kindly talked me through
    once. All of my
    > pages are
    > built from a template with an editable region.
    >
    > My question is, can I add this box (perhaps with a
    standard 'Also check
    > out'
    > title and then spaces for my links) at the template
    level? This will save
    > me
    > having to go to Insert>Layout Objects>DivTag on
    every page. I've tried
    > simply
    > adding this to the editable region of the template but
    it simply pushed
    > the
    > editable region box over to the right and then didn't
    appear on my pages
    >
    >
    > Also, the links box would ideally appear about half way
    down my pages on
    > the
    > right...
    >
    > Hope you can help, many thanks in advance!
    >
    > James
    >
    > Here's an example page where I have manually added my
    link box on the
    > right of
    > the page...
    >
    http://www.fyrne.com/james_journalism/Pages/Mosaic_of_the_med.html
    >

  • CSS layout question regarding browser sizing

    Hi,
    Basically I want the basis of my site to be - A header, Main content with a background image, A Footer.
    I'm having problems however, I can't seem to get my footer to position where I want it i.e. at the bottom of the browser window at all times. I'm doing it as an AP div and how it should work is that it's fixed at the bottom of the page and then if the user resizes their browser in the y direction the footer moves up with it, over the top of the main content (but not the header which will have a higher z-index).
    The way I THOUGHT to do it was to firstly create a div tag for the whole page (780 pixels wide, auto left and right margins, auto height) and then inside that put my ap div header fixed height at the top and have another ap div as the footer, fixed height and tell it to position 0 pixels from the bottom. However this doesn't seem to do the trick, I'm sure I'm missing something really really simple. Anyone who's vaguely familiar with the program will be able to answer this I'm sure. If my question isn't clear please let me know and I'll rephrase,
    Ta

    There is no reason to use APDivs for such a simple layout.  Default CSS positioning (which is no positioning at all) is typically all you need for most layouts.  Build your HTML markup logically from top to bottom of page and your footer will naturally appear at page bottom.
    Live Demo (view page source to see the code)
    http://alt-web.com/TEMPLATES/Basic-1-col-fixed.html
    Or, for a Sticky Footer using Fixed positioning:
    http://alt-web.com/DEMOS/CSS2-Sticky-Footer.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • CSS Layout Questions

    Only making baby steps in CSS still but I am learning a lot. Here's a link to the page I am trying to create: http://www3.telus.net/~jessum/details_layout.html
    Here's what I have managed to create so far: http://www3.telus.net/~jessum/details.html
    When explaining any steps please explain it using Dreamweaver. I will be looking in the code to see how it all works but I want to be able to get proficient using Dreamweaver so I can see how things flow etc. before I try and hand code.
    Questions
    1. Is it a good practice to use a "container" to hold all of the div's or is it better to start by adding a header without a container?
    2. How can I centre a div in the page?
    I read that to align the div so it's "centred' in the page I can use: margin: auto;
    but I'm not sure how to do this. Please explain.
    3. How do I remove the space around the "container"? I've set the margin and padding to: "0" but the space is still there.
    Thanks

    osgood_ wrote:
    Not sure where this notion of using the body as a container came from but for years a wrapper or container was considered standard practice.
    The idea is being promoted by several of the most active and knowledgeable members of this forum. I think the idea first came from Altruistic Gramps, and I remember debating the issue with him about a year ago. It has also been picked up enthusiastically by Murray, and I've seen Nancy O suggest the same idea.
    I've been doing a lot of research into CSS3 recently, and discovered that the Borders and Backgrounds module specifically advises against styling the <html> element (http://www.w3.org/TR/css3-background/#special-backgrounds). It doesn't give a reason for this recommendation.
    I suppose the idea of giving the body a width instead of using a container might come from the HTML5 definition of the body as representing the main content of the document (http://dev.w3.org/html5/spec/the-body-element.html#the-body-element).
    I suspect that this is likely to develop into the same type of fruitless argument as we had several years ago about the "superiority" of ems over pixels. Adding a single <div> to act as the container or wrapper for the content doesn't strike me as being less efficient. It also has the advantage of avoiding styling the <html> element.

  • A syntaxic question...

    Hi guys,
    I've posted about this on this very forum before, but I can't find my own question... and the answers that you people provided, so I'll do it again: what's wrong with the following, knowing that I have Developer Tools installed and that I clearly remember writing a script along those lines a long time ago, when I was still using Tiger?
    Here goes:
    "move mouse
    720, 450 {from left, from top}"
    Where the goal is to move the mouse pointer center screen on startup (don't bother about compiling and saving as an app, just about the right syntax). Something's missing, but I can't put my finger on it...

    The app developer once told me that the delay in activating the mouse was built-in, because it took the Trackpad some time (usually no more than a second or two) to fully activate. So I guess I can't get anything better than what I already have: at least I don't accidentally trigger the Apple menu by trying to move my mouse pointer to screen center...
    Well, trying to stress my brain to figure out an impossible solution.
    FWIW, here's the code, before modification:
    move mouse {720, 450} -- {from left, from top}
    click mouse
    delay 0.1
    click mouse
    delay 0.1
    move mouse {730, 460} -- {from left, from top}
    I'm going to add a two-second delay between the two mouse clicks, just in case. I'll keep you posted. As for the compliment, it's amply deserved, and I'm not the only one on this forum who says so...
    I you are trying to simulate a double click, you need to make the delay closer to what a human would do. Two seconds will most likely turn the double click into two single click.
    2
    All this is probably not need since you fessed up to it being a driver problem.
    Cheers!
    Thanks again for your rewarding comments.

  • 11g pivot query syntax question

    I searched the forums and I have seen questions similiar to the one I am asking, but its not the exact same issue.
    I need 3 fields in my 'for' clause. I get 'column ambiguously defined. I think I get this error for a different reason that other people asking the question.
    The others seem to be doing more than 1 function in the pivot clause and those need an alias. I give an alias with my 1 function and still get an error.
    ORA-00918: column ambiguously defined
    I used aliases like the recommendation in other posts and I still get the same error. I think I need 3 columns in the for clause.
    --note that this is just a test table. These are not real names going into production
    create table pivot_tab (
    pk1 number,
    pk2 number,
    myElement varchar2(30),
    myElementDate date);
    pk1,pk2 are the unique key.
    I need this to return as: the vlaues after pk2, can be any alias. This is just an example.
    pk1  pk2  MY1_DATE, MY2_DATE, MY3_DATE
    select *
         from pivot_tab
        PIVOT ( max(myElementDate) for myElement
                in (''MY1','MY2','MY3'))
    I saw a couple of references to this syntax, but I get syntax errors.
    ora--00906: missing parentheses. So I dont think this syntax works.
    select *
         from pivot_tab
        PIVOT ( max(myElementDate) for (pk1,pk2,myElement)
                in (''MY1','MY2','MY3'))Edited by: Guess2 on May 6, 2013 6:50 AM

    don't have any sample data or expected results to test this with maybe
    SELECT *
      FROM (SELECT pk1,
                   pk2,
                   myelement,
                   myelementdate
              FROM pivot_tab) PIVOT (MAX (myElementDate)
                              FOR myElement
                              IN ('MY1' AS MY1, 'MY2' AS MY2, 'MY3' AS MY3));or maybe you are trying to pivot by the first part of the pk?
    with pivot_tab as (select 1 pk1, 2 pk2, 'MY1' myelement, sysdate myelementdate from dual union all
                       select  1 pk1, 3 pk2, 'MY2' myelement, add_months(sysdate,2) myelementdate from dual union all
                       select  1 pk1, 4 pk2, 'MY3' myelement, add_months(sysdate,3) myelementdate from dual union all
                       select 2 pk1, 5 pk2, 'MY1' myelement, sysdate myelementdate from dual union all
                       select  2 pk1, 6 pk2, 'MY2' myelement, add_months(sysdate,6) myelementdate from dual union all
                       select  2 pk1, 7 pk2, 'MY3' myelement, add_months(sysdate,7) myelementdate from dual )
    SELECT *
      FROM (SELECT pk1,
                   myelement,
                   myelementdate
              FROM pivot_tab) PIVOT (MAX (myElementDate)
                              FOR myElement
                              IN ('MY1' AS MY1, 'MY2' AS MY2, 'MY3' AS MY3));
    PK1     MY1     MY2     MY3
    1     5/6/2013 10:07:40 AM     7/6/2013 10:07:40 AM     8/6/2013 10:07:40 AM
    2     5/6/2013 10:07:40 AM     11/6/2013 10:07:40 AM     12/6/2013 10:07:40 AMEdited by: pollywog on May 6, 2013 10:08 AM

  • Beginners CSS layout question - expanding a layer and not overlapping another

    Having got well and truly fed up of using tables to layout
    pages I am trying to gem up on CSS layer based layout. All well and
    good but despite the various tutorials I can't find an answer to
    this question...
    Q. I have a layout with layers to make a three column layout,
    however, I want to have a footer section at the bottom of the page
    that runs the same width as the three columns (you can see my WIP
    example here
    http://www.spiralfilm.com/clients/broadoak/index_css.html
    ). Problem is, as the centre section expands with more content, how
    do I make that section expand and not overrun the current footer
    section? I want it to expand like a table does and push the footer
    down.
    I'm sure it is simple but I just can't get my head around it!
    Thanks in advance for any pointers...

    > However, is the use of div tags the way to seperate
    blocks of content? The
    > DW8
    > help file seems a little unclear on this?
    Yes, it would be one way to do that. A div tag is simply a
    container for
    other HTML elements, like a table. The problem you are having
    comes with
    using DW 'layers' to contain text. As Thierry suggested, this
    is because
    absolutely positioned elements (i.e., DW 'layers') are
    removed from the
    normal flow, preventing them from interacting with adjacent
    page elements -
    this means that when the text inside them expands, it will
    begin to overlap
    other content. See my demonstration of this here -
    http://www.great-web-sights.com/g_layers-overlap.asp
    Try these tutorials -
    http://www.macromedia.com/devnet/mx/dreamweaver/css.html
    http://www.macromedia.com/devnet/dreamweaver/articles/tableless_layout_dw8.html
    http://www.macromedia.com/devnet/dreamweaver/articles/css_concepts.html
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Benfrain" <[email protected]> wrote in
    message
    news:elgpba$qds$[email protected]..
    > Hi, thanks for those links. Sorry to confess they are
    all a little beyond
    > my
    > knowledge. I will read on and see if I can understand
    them.
    >
    > However, is the use of div tags the way to seperate
    blocks of content? The
    > DW8
    > help file seems a little unclear on this?
    >

  • More syntax questions about nested symbols

    I have a symbol timeline that does everything I need it to do except to access a function within the stage symbol. I would have thought that calling the function in the stage symbol from a nested symbol (which is loaded dynamically, if that makes any difference) would be something along the lines of:
    sym.getComposition().getStage().gotoNextSlide("slide5");
    but no luck. I can alert the stage itself as [Object Object], which brings up another question. Is there an always-available property of objects that one can alert or trace to make sure the correct object is being targeted? I've had no luck with the symbol's id, name, or symbolName.

    Sure. You've seen one form of the project I'm working on, though I'm at the next speedbump. Here's an excerpt of the involved parts.
    I have the stage symbol and within that symbol, I have a function:
    function gotoSlide(slideName){
              fadeTo(slideName);
    function fadeTo(slideName){
         /// this all works fine, when called from the main timeline
    In the composition, I'm loading slides from the library and on the timeline of one of those slides is the following.
    navHidden = true;
    var trueButton = sym.getSymbol("answers").$("true");
    trueButton.bind('click',goNext);
    function goNext(){
              sym.getComposition().getStage().gotoSlide("slide_05");
    I know there are other syntaxes I could use but refactoring is in the future. The console log I get is:
    Object [object Object] has no method 'gotoSlide'
    It's slide 5 in these:

  • Why is CSS syntax highlighting not working?

    I installed Edge Code on a Win7-Professional PC
    HTML syntax is working but CSS is not.
    Does anyone have the same problems?

    Are you opening a file with a ".css" file extension?  That should be working.  If it's not, could you post a screenshot?
    - Peter

  • CSS Design question

    Hi All,
    I have a couple of questions around the CSS 11501 would be grateful if any gurus out there cud shed more light, here goes;
    -Does the CSS support bridging between 2 vlans? In a similar way to the CSM. What command might be used to achieve this?
    Thanks.
    Kind Regards,

    Thanks for your response Giles.
    Gotcha, further more ... so if CSS is L-2 adjacent to the servers do the servers have to have loopbacks created for the VIP?
    I wud assume this wud be required as the CSS will only be re-writting the MAC address? Can you please shed more light here as well.
    Cheers

  • CSS update question

    I had font-size = 12 as a global CSS tag. Changed to 14 but no updates of existing elements displayed. Exited app and restarted, now CSS displays as 14pt in the property sheet but obviously still really 12 pt on run. Is there a call or invalidateDisplayProperties or something that can help refresh this?

    Mahmoud_Rabie wrote:
    Dear Experts,
    Given:
    The sample:
    http://apex.oracle.com/pls/apex/f?p=53647:5
    test/test
    Workspace information
    Workspace : ralab
    user : test
    password : test
    application : Sample Trees
    page : 5
    Required
    I can change node color using jQuery contains() selector based on a value e.g. Project
    apex.jQuery("#eba_demo_tree").find("a:contains('Project')").css("color","red");Now, the question how to update the jQuery code to do change the node based on a regular expression like
    ^[P]or in other words for all nodes starts with P, the color should be changed to redDon't think I can recall anyone posting a thread so they can answer another one (and demand points for doing so) before.
    If anyone's up for it, just answer the original: +{thread:id=2491175}+

  • CSS sticky question

    Hi guys,
    I have one request, remote users dial into our sslvpn box, get their IP from an IP pool(sslvpn tunnel mode), then terminal to some servers. I plan to put a CSS in front of these terminal servers.
    But one question is about stikcy problem. How can I configure the CSS to let one user go to the same terminal server all the time when he dials into our intranet?
    Thank you.
    Ed

    Ed,
    there is not much option.
    It's either the ip address or we can spoof the data and find something else to match on.
    But the CSS can only spoof HTTP and HTTPS.
    So, for your terminal server I do not see a solution.
    Gilles.

  • CSS & PT Question

    Hi Everyone
    I have several sites that I'm getting rid of some older CUCM 4.3 boxes and I have a question about CSS and PT. Currently none of the sites are connected by to a PUB & SUB setup, all the sites are independent of each other but when I remove the older boxes and they just have the GW and they connect across the want I wanted to know can I use the current CSS & PT that I currently have on my SUB at our data center. I've checked all the boxes and they have the exact same setup as CSS & PT goes. But once they all connect back will I have to change anything or would I have to make any additional ones. I'm attaching a copy of the names that we have and these names again are the same on all the older boxes and on our new PUB & SUB.
    Eric

    That's up to your dial plan and requirements, you need to define whether the current dial plan adjusts to what the company wants, or if you need to modify it, but that's up to you.

Maybe you are looking for

  • About hiding columns in a JTable.

    I have read various ideas on how to hide columns in these forums,. Everything from using the removeColumn method in TableColumnModel to writing a wrapper TableModel to handle the details. These ideas work, but in certain situations it is difficult to

  • Multilingual App Toolkit fails with TFS ready only files

    I have added Multilingual App Toolkit to a ASP.NET web form application, in this application is used TFS for version control. My problem is that every time the application is build Multilingual App Toolkit need to update the files, but it does not ch

  • My kernel panic log doesn't have kext list

    Usually kernel panic logs should contain list of kexts with their addresses, but my log have only the backtrace, but not the section starts with: "Kernel Extensions in backtrace (with dependencies):". It was exists few hours ago, but now its gone. Do

  • Anyone know where the link to download 'os 6.1 or os 7.1' is located?

    The upgrade or update to 'os 5.1.1', either  'os 6.1.1 or 7.0' is not available in ITunes, App Store, or Apple.com.  Where is it?

  • Can i have 2 login for one application

    Please I need help am trying to design a sch portal where lecturers and students get different login and view different information on one application. Thank you Mario