Why do templates use .classes so much instead of DIVS?

I really thought DIV's were the way we named once-off major
columns and sections across our site, yet when I look into the DW
templates they are all classes with unusual names. Yet I thought
CSS were moving to standard naming conventions like....
div#container (for the outside wrapper)
div#branding (instead of header, just in case they want the
branding to move to the side!)
div#body (inside wrapper)
div#content_main (Main articles)
div#content_sub (minor articles)
ul#nav_main { }
div#site_info { }
div#sub_menu (not footer as even it might change its
position!)

.oO(kiusau)
> So, while we are on the topic, perhaps you could explain
to both Eclipse Now
>and myself the use of DW nomenclature. By way of example,
how does one read
>the following terminology obtained from the
SpryMenuBarHorizontal CSS stylesheet
>
> ul.MenuBarHorizontal a.MenuBarItemHover,
ul.MenuBarHorizontal
>a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal
a.MenuBarSubmenuVisible
>
> For example, does this mean that a specific <a>
tag with the class attribute
>MenuBarSubmenuVisible is contained in a
tag with the class attribute
>MenuBarHorizontal
Yes.
>and that these two tags are further contained in another
<a>
>tag with the class attribute MenuBarItemSubmenuHover,
etc.?
Nope. These are three different and independent selectors:
ul.MenuBarHorizontal a.MenuBarItemHover
ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
ul.MenuBarHorizontal a.MenuBarSubmenuVisible
The commas just group them together, so that you don't have
to write the
same declarations three times. These two statements are
equivalent:
.foo {some declarations}
.bar {some declarations}
and
.foo, .bar {some declarations}
5.2.1 Grouping
http://www.w3.org/TR/CSS21/selector.html#grouping
> How about the following taken from a DV bundled
template?
>
> .twoColHybLtHdr #mainContent
>
> Does this indicate the application of a class rule
called .twoColHybLtHdr
>applied to a div tag named #mainContent?
Nope. This selector applies to any element with the ID
'mainContent',
which is a child (direct or indirect) of any element with the
class
'twoColHybLtHdr'.
5.5 Descendant selectors
http://www.w3.org/TR/CSS21/selector.html#descendant-selectors
>If so, does the name of the tag
>replace the need for mention of the type of tag to which
it is applied? In
>short, does the above represent the following:
>
> <div id="mainContent" class="twoColHybLtHdr">
To match exactly this element, the selector could be
.twoColHybLtHdr#mainContent
Notice that in this case there's no space between both parts!
With a
space like this
.twoColHybLtHdr #mainContent
it becomes a descendant selector, mathing child elements as
described
above. Just a little blank, but a completely different
selector.
> When I studied CSS nomenclature for the first time I
found it fairly simple
>and easy to understand.
Actually it is quite simple, there are just a few basic
rules. If unsure
about the meaning of a selector, ask the Selectoracle:
http://gallery.theopalgroup.com/selectoracle/
Micha

Similar Messages

  • Why cant i use genius for much songs in my lists?

    in last month there are much songs in my lists where i cant use genius.
    why?
    have other user the same problem?

    I don't know exactly what you mean. If you buy a box version of Lightroom the serial number will be find on the cover of the installation CD.
    Regards
    Axel

  • Why does Firefox use up so much memory? My Windows Task Manager shows it using 109 Meg just now asking this question. Thanks

    Pretty simple: I want to know how I can keep Firefox from using so much memory when in use. 100-200 meg is common. Thank you

    Hi musicfan,<br />Sorry you are having problems with Firefox. Maybe you should have asked earlier and we could have fixed it.
    Reading your comments I do not see that rolling back to an insecure Firefox 22 will actually help you much. You are probably best using IE, unless you have also damaged that.
    *[[Export bookmarks to Internet Explorer]]
    You should not use old versions they are insecure. Security fixes are publicised and exploitable.
    * [[Install an older version of Firefox]]
    * https://www.mozilla.org/security/known-vulnerabilities/firefox.html
    Most others will not be having such problems. We are now able to say that with confidence because after developers missed a regression in Firefox 4 telemetry was introduced so that data was obtained. It may be an idea to turn on your telemetry, if you have not already done so, and decide to stick with Firefox.
    *[[Send performance data to Mozilla to help improve Firefox]]
    Trying safe mode takes seconds. Unfortunatly if you are not willing to do even rudimentary troubleshooting there is not anything we can do to help you.
    *[[Troubleshoot Firefox issues using Safe Mode]]

  • Why we are using init() in servlet

    why we are using init() in servlet
    Instead of doing in init() we can do that things in Constructor

    Hi
    In order ti be clear. Do you remeber the applet lfe cycle ?. An applet run inside a browser and a servelts runs inside a servlet container, so is the servelt container who instatiate a servlet, init and destroy, and while servlet is alive calls doService inside a thread.
    The mechanism to fill some parameters or other task is by writing the init(ServletConfig) method inherited from GenericServlet.
    To clear parameters or other clearing stuff you can use the destroy method, inherited from GenericServlet
    Hope this helps

  • Why I should use an iCloud mailbox?

    Hello there. I discovered that now I can use a @icloud.com mail address simply enabling it from my iCloud preference panel in OS X. I have created an email address, but I have some questions:
    What happens to my @icloud.com address if I don't use a Mac (or iPhone, iPad, etc.) anymore?
    Will my iCloud mail be available forever from icloud website or using IMAP configuration?
    What is the maximum space granted?
    The final question is: why I should use an iCloud mailbox instead (for example) of a Gmail one? All contributes will be greatly appreciated!

    1) Nothing
    2) Yes, as long as Apple keeps the service going
    3) 5Gb for free. More if you pay.
    4) It's up to you. iCloud email supports push notifications on iOS devices. That's about the only difference compared to any other IMAP email account. iCloud also syncs and backs up iOS devices.

  • Why we are using servlet as a controller instead of Jsp?

    Can any explain answer for this question
    Thanks in Advance
    Why we are using servlet as a controller instead of Jsp?

    nareshannam wrote:
    Can any explain answer for this question
    Thanks in Advance
    Why we are using servlet as a controller instead of Jsp?Basically JSPs are suited to do just one thing, to generate HTML with variable content. You can put Java code in there too, but it's not a good place for it. Messy to validate, messy to debug. In fact, with tag libraries like JSTL, actual Java code is rare in professionally written JSPs.
    A controller does the bit that comes before you've decided what kind of response the user is going to get, typically it may invoke one of several JSPs according to validation etc.. There's a lot of logic, a lot of parsing parameters and so on. Much cleaner to do this from a Java class like a Servlet.
    Judging by this forum quite a lot of people come to JSPs from ASP or PHP and don't want to bother with actually writing Java classes. That's never going to be much good.

  • Why use customized / particular exceptions instead java.lang.Exception

    Hi,
    Do any of you guys know where can I find a theorical statement / explanation about why use particular / customized exceptions instead java.lang.Exception? I am aware that it consumes more resources and becomes a heavier object, as well as the clearness when coding and all that stuff; however, my boss wants to see a tech document where all this is clearly stated. Any resource over there?
    Regards

    It is better to throw specific--or at least module- or
    package-specific--excpetions, rather than Exception,
    because then the caller knows what to expect. However,
    if you declare "throws Exception", the caller can
    still catch IOException, SQLException, etc.,
    separately. He'll just have to be a really good
    guesser as to which ones he should catch.True.
    Also, there's no point in declaring "throws
    NullPointerException." Any method can throw it without
    declaring it. If you generate your own NPE (or other
    unchecked exception) inside the method, then you
    should document it in the javadoc comments, but you
    don't need to put it in the throws clause. It doesn't
    do any harm, but it's redundant and cluttersome.It was an example and I wasn't feeling too creative....excuse me. ;-) But yeah, I've never thrown NPE ever.
    I'm assuming overhead caused by extending classes.At
    the worst, it would be miniscule, or so I wouldthink.
    What overhead is created by extending classes?Hmm, I was under the impression that a class the extended another class, inherited all of the other classes data (variables, etc.). Hence, you get something like this:
    SuperClass1 + SubClass1 + SubClassOfSubcCass1 = Memory usuage for SubClassOfSubClass1.
    Since adding postivie number will always end up increasing data, SubClassOfSubClass1 will use more dtat than SuperClass1.
    Am I wrong?

  • Why do we use init() method instead of constructor to initialize a servlet?

    Why do we use init() method instead of constructor to initialize a servlet?

    I suspect the reasons are partly historical. A servlet is loaded dynamically, by class name and, once you've loaded the Class, it's easier to to a newInstance, using the default construtor than it is to search for a particular matching constructor and invoke it.

  • Why are we using Abstract class?

    Why are we using Abstract class? What is specify use of Abstract class?

    The way I understand it....and I may be wrong because
    I am very new....is that by making the class abstract
    you will add abstract methods to it. Those abstract
    methods MUST be defined in in any subclass that
    inherits from the abstract class thereby making the
    abstract a template for subclasses.
    If your animal class is abstract then you would need
    an abstract method (Which is just siganture, no body)
    of say "numberOfLegs". Then in your dog and cat
    classes which extend animal you must define a
    "numberOfLegs" method with appropriate code.it isn't mandatory for an abstract class to have abstract methods. if a class does have abstract methods, the class must be abstract. but the following is perfectly legal
    public abstract class NoAbstractMethods {
      public void doStuff() {
         // do stuff
    }a subclass of an abstract class can also be abstract, and as such need not implement any additional methods

  • I do not have many messages but my iphone 5s says messages take up 4.6GB of space.  When comparing with friends who have many more message, less than 1 GB is being used on their phones.  Why are mine taking up so much space and how do I correct that?

    I do not have that many messages on my new iPhone 5s (maybe about 15 conversations and only one or two going back a little ways) yet when I go to Settings, Usage it shows that my messages are taking up 4.6GB of space.  When comparing with others (some who have hundeds of messages) they are using under 1GB for their messages.  Why are mine taking up so much space??

    I found a post with this solution that worked for me - .Do a backup, then download ibackupbot. It lets you look into the contents of that backup. Look in system files>mediadomain>library>sms>attachments. I found a ton of huge files related to long deleted texts. ibackupbot let me delete all that old crap. I then restored the phone with that now modifec backup and Bingo! freed up 9 GB. No problems.
    But note, if you are not technically inclined you probaly don't want to be digging around and deleting back up files. You delete the wrong thing and you could jack up your phone badly. Be careful.

  • Why do i have a question mark instead of the app picture. It wont let me use the app either.

    Why do i have a question mark instead of the app picture. It wont let me use the app either.

    Where is your Calculator application located? Before you can put it into the Dock you need to remove the Question Mark. Select it with the mouse and drag it out of the until it "poofs" away. Now locate Calculator and drag its icon into the Dock.

  • Help me please, I need to know why imovie videos use so much memory

    There have been a lot of firsts for me this year. First time owning a laptop, first time owning a mac, and first time uploading videos to youtube. I got my macbook in april and it's my pride and joy. However, I'm having a huge problem with it.
    I don't understand why the videos I make on imovie use up so much memory!! Now that I have an hd video camera it's even worse. First of all, I can't import my videos because there isn't enough space. Second of all, the videos I did manage to import were about 30-40 minutes total and are using up about 22GB! I thought my events, (which usually range from 20-50 minutes) were bad enough as they can be 1-2GB
    Here is my question:
    Why do the videos take up so much space and can I change that?
    any information would be very appreciated, I've spent hours scouring the web looking for answers and could not find anything. Thanks again!

    sofia castello-branco wrote:
    Why do the videos take up so much space and can I change that?
    They contain lots of data. You can reduce the resolution, frame rate, or length on movies to reduce their final size, but that won't help you much at import or while you are working with them.

  • I cannot use a website I need to use, with Firefox 5.0. So, I need to uninstall and go back to 3.5 or 3.6. Please advise. Also, my control panel locks up since Windows Explorer has pbms. Which is why I am using Firefox instead. Thanks for any help!

    I cannot use a website I need to use, with Firefox 5.0. So, I need to uninstall and go back to 3.5 or 3.6. Please advise. Also, my control panel locks up since Windows Explorer has pbms. Which is why I am using Firefox instead. Thanks for any help!

    ''I figured it was going to be FAFSA causing your problem.''
    Install Portable Firefox 3.6.x to your hard drive for that one website. It won't affect your current Firefox installation at all. <br />
    http://portableapps.com/apps/internet/firefox_portable/localization#legacy36

  • Why use Class.forName() ?

    Why is it always adviced to use Class.forName( nameOfTheDriver ). Why dont we simply import the driver via the import statement ?
    Please note that this topic is part of a bigger topic I published in Java programming about difficulties I had importing driver. See:
    http://forums.java.sun.com/thread.jsp?forum=31&thread=147534
    for more details.

    Because using an import statement only tells the compiler about the driver. Class.forName() actually loads the driver when the program runs, which is what you want to happen.

  • Af:inputFile componet - want to use class oracle.sql.BLOB instead

    Hi,
    I want to use the class oracle.sql.BLOB to get a blob from an input field. Can I use another ADF component instead of the af:inputFile component?
    According to this site: http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/apidocs/oracle/adf/view/faces/component/core/input/CoreInputFile.html - The "value" property of an inputFile component will be set to an instance of the oracle.adf.view.faces.model.UploadedFile class.
    From the Oracle JDeveloper 10g (10.1.3) Documentationdocumentation:
    UploadedFile file = (UploadedFile) event.getNewValue();
    //Here's where we could call file.getInputStream()
    I don't want to use getInputStream().
    I am working with JDev, oracle ADF, and Toplink.
    Any help is appreciated.
    Lin

    Hi,
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html
    Example 85
    http://otn.oracle.com/products/jdev/tips/muench/uploadedfiletoblob/UploadedFileToBlob.zip
    Frank

Maybe you are looking for