CSS - yeah - this is totally off topic!

This is a discussion on CSS - yeah - this is totally off topic! within the Off Topic & Humor Discussion forums, part of the The Back Porch category; Ok folks - flexing my muscles here going totally off topic from humor or carry/gun oriented stuff! I use CSS quite a lot but have ...

Results 1 to 9 of 9

Thread: CSS - yeah - this is totally off topic!

  1. #1
    Assistant Administrator
    Array P95Carry's Avatar
    Join Date
    Mar 2005
    Location
    South West PA
    Posts
    25,482

    CSS - yeah - this is totally off topic!

    Ok folks - flexing my muscles here going totally off topic from humor or carry/gun oriented stuff!

    I use CSS quite a lot but have never so far worked out how much I can or cannot group stuff in a CSS file. I usually define classes, div's and Id's as needed and that serves pretty much for my modest needs but - have not been sure whether I can satisfactorily group a bunch of html tag items, separated by commas.

    I have seen this for example but never tried it ......

    table, td, p, div span, nobr, ul, ol, li, input {categories and values} - and really am just wondering what the ''rules'' are. I am thinking here I could add tr as well altho I guess td takes care of cell and contents.

    I have several books but never seem to find any definitive explanation. Anyone who uses this themselves do chip in.
    Chris - P95
    NRA Certified Instructor & NRA Life Member.

    "To own a gun and assume that you are armed
    is like owning a piano and assuming that you are a musician!."


    http://www.rkba-2a.com/ - a portal for 2A links, articles and some videos.

  2. Remove Ads

  3. #2
    VIP Member Array Bud White's Avatar
    Join Date
    Dec 2004
    Location
    Away - Health Problems
    Posts
    17,353
    Guess im not going to help because i have no ideal what the hell your talking about

  4. #3
    Senior Member Array dunndw's Avatar
    Join Date
    Jul 2006
    Location
    Nashville
    Posts
    1,123

  5. #4
    Lead Moderator
    Array rocky's Avatar
    Join Date
    Jan 2005
    Location
    MI
    Posts
    15,850
    when you need help trying to load up a truck to move , let me know. I bet Bud and I can handle that. the comp stuff, ya lost me.
    "In matters of style, swim with the current; in matters of principle, stand like a rock." Thomas Jefferson


    Nemo Me Impune Lacesset

  6. #5
    Assistant Administrator
    Array P95Carry's Avatar
    Join Date
    Mar 2005
    Location
    South West PA
    Posts
    25,482
    Thx Dunn - I did a while ago do a pretty exhaustive Google search but these look interesting - despite age I am still a knowledge hound for stuff I use. That second link is excellent

    Thx for the truck/moving offer Rocky
    Chris - P95
    NRA Certified Instructor & NRA Life Member.

    "To own a gun and assume that you are armed
    is like owning a piano and assuming that you are a musician!."


    http://www.rkba-2a.com/ - a portal for 2A links, articles and some videos.

  7. #6
    Moderator
    Array RETSUPT99's Avatar
    Join Date
    Jul 2006
    Location
    Central Florida
    Posts
    44,549

    I Was Using That CSS Stuff For A While...

    and it worked wonders on my hemorrhoids...

    If that isn't the same 'stuff'...I have no 'clue' as to what you're talking about...

    ret
    The last Blood Moon Tetrad for this millennium starts in April 2014 and ends in September 2015...according to NASA.

    ***********************************
    Certified Glock Armorer
    NRA Life Member[/B]

  8. #7
    Assistant Administrator
    Array P95Carry's Avatar
    Join Date
    Mar 2005
    Location
    South West PA
    Posts
    25,482
    Haha - I was only aiming this at those who ''know'' but to explain ...

    CSS = cascading style sheet - a remote file called by a web page and containing instructions as to how things should look and behave. Some style commands can be ''in line'' meaning they go in with html code but - it is more versatile to have the remote file - saves code burden in the end usually.

    Some things ''ordinary'' html code cannot do - style sheets can - one of which is using the ''z'' axis - meaning layers. I use style sheets quite a lot with my web stuff but am always trying to get better
    Chris - P95
    NRA Certified Instructor & NRA Life Member.

    "To own a gun and assume that you are armed
    is like owning a piano and assuming that you are a musician!."


    http://www.rkba-2a.com/ - a portal for 2A links, articles and some videos.

  9. #8
    Distinguished Member Array BIG E's Avatar
    Join Date
    Sep 2006
    Location
    KY
    Posts
    1,443

    Sundae

    I to put the ice cream in the bowl after I have drizzled some fudge on the sides for effect. I then cover the whole thing with fudge, nuts, whipped cream, more nuts and then a cherry.


    What? This isn't the sweets forum? Hunh?

    I must have been thrown off by all the programming gibberish.

    I am a hardware guy... if you want to talk multi core processors, PCIE vs PCI vs AGP or bus speeds then you are on.
    Don't hit at all if it is honorably possible to avoid hitting; but never hit soft!

    -- Theodore Roosevelt --

  10. #9
    Member Array Nate's Avatar
    Join Date
    Nov 2006
    Location
    Alexandria, Va.
    Posts
    407
    Are you talking about setting styles for a group of different HTML tags in the same CSS declaration?

    Something like:

    h1,
    h2,
    h3,
    h4,
    h5,
    table,
    tr,
    th,
    div,
    p,
    .contentheading,
    .componentheading,
    .sectiontableheader {
    font-family: Tahoma, Helvetica, sans-serif;
    font-weight: bold;
    }
    It may BE possible, but not advisable to group elements capable of nesting with the same style. Why? Because they cascade anyway, and would be redundant.

    Citing your example, if you made a table class, it would by default cascade down to the <tr>, <th> and <td> tags. <div> would cascade on top of <p>, etc.

    This is fine if you want to have a general style for a main body of text, and then pare it down to specific colors for specific paragraphs or words, even (courtesy of another <div>), but if you want to make everything a certain style, just declare it in your

    body {
    ...
    }
    declaration.

    Some good places to study up are www.w3schools.com and of course, straight from the horse's mouth at http://www.w3.org/Style/CSS/.

    Don't forget the validation service at http://jigsaw.w3.org/css-validator/, and what discussion on CSS would be complete without mention of www.csszengarden.com?

    Have fun, and I hope this helped a bit!

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Totally Off Topic -- Some times some folk just get lucky
    By DaveH in forum Off Topic & Humor Discussion
    Replies: 3
    Last Post: November 9th, 2010, 12:57 AM
  2. Totally off topic: cigar room/area
    By alyehoud in forum Off Topic & Humor Discussion
    Replies: 18
    Last Post: November 14th, 2007, 12:36 PM
  3. Totally off topic, but gun related, and kind of funny.
    By limatunes in forum Off Topic & Humor Discussion
    Replies: 29
    Last Post: March 7th, 2007, 11:07 PM
  4. OK - not totally serious!
    By P95Carry in forum Defensive Rifles & Shotgun Discussion
    Replies: 15
    Last Post: September 11th, 2005, 10:45 PM