Results 1 to 2 of 2

Thread: Elementary Coding Question

  1. #1
    Join Date
    Apr 2012
    Location
    Central New Jersey
    Posts
    286
    Thanks
    95
    Thanked 3 Times in 3 Posts

    Default Elementary Coding Question

    Would someone please show me how the following two statements can be expressed in a single statement? I'm sure it's possible, my reference book just doesn't clearly explain it:
    Code:
     .index     .messageBox {text-align:left}
     .getRecord .messageBox {text-align:left}
    Many thanks.

    A.
    Last edited by marain; 07-17-2015 at 09:56 AM. Reason: Question slightly reworded to make me appear less stupid.

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Selectors are separated by a comma;
    Code:
     .index .messageBox, .getRecord .messageBox {text-align:left}
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. The Following User Says Thank You to Beverleyh For This Useful Post:

    marain (07-17-2015)

Similar Threads

  1. I have a coding question
    By ajfmrf in forum Other
    Replies: 5
    Last Post: 05-16-2011, 10:41 PM
  2. Coding question
    By giants869001 in forum CSS
    Replies: 0
    Last Post: 09-23-2009, 01:10 AM
  3. Php coding question, help please! :)
    By Rawien in forum PHP
    Replies: 3
    Last Post: 08-17-2008, 04:14 PM
  4. Quick HTML coding question
    By rollings in forum HTML
    Replies: 1
    Last Post: 07-25-2007, 08:34 PM
  5. new member; coding question
    By wanderinon in forum Looking for such a script or service
    Replies: 17
    Last Post: 03-28-2007, 05:25 AM

Bookmarks

Posting Permissions

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