Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [Solved] Whats the difference on this CSS?

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #28356
    miniMAC
    Member

    Hi everyone! I have a simple question. Can someone explain the difference between these two style sheets?

    In every theme in wordpress i have found this structure:
    [img]http://files.droplr.com/files/60101112/AdOcr.yes.jpg[/img]

    but in this theme wordpress, i found this structure:
    [img]http://files.droplr.com/files/60101112/AdP4N.no.jpg[/img]

    #72259
    Rob MacKay
    Participant

    its just personal preference really

    I like the top way of writing it, because its more readable :)

    #72263
    miniMAC
    Member

    Thanks, but I think that the second method is less effective, right?

    #72264
    TheDoc
    Member

    Nope, simply just personal preference.

    Some people even do a combination of the two (grouping like-objects on a single line):

    Code:
    .class {
    width: 123px; height: 123px;
    margin: 0; padding: 0 12px 0 0;
    background: url(image.jpg) no-repeat; color: #ffffff;

    At the end of the day, it’s personal preference, in my opinion.

    #56561
    miniMAC
    Member

    Ok! Many thanks for the answer! :)

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Back End’ is closed to new topics and replies.