SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Member
    Join Date
    Jun 2014
    Location
    Charlotte, NC
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Question of sanity... Micro Rant

    Hi everyone...

    Without going into too much detail or naming names. (X-theme) ooops I did say no names...


    Why would a developer force you to use a div to center a video on a page?

    I had been struggling with trying to do something that I thought was simple that went well beyond my 20min code limit.

    Definition - I only work on an coding issue for 20 mins, then I look for experts.

    Just looking for feedback on the question, shouldn't that be something that should just work in wordpress?


    Also love the mini cocktail post tag... I did not get to that point in this case.
    Last edited by Mittineague; Jun 12, 2014 at 12:23. Reason: removing unnecessary link

  2. #2
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    793
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Why would a developer force you to use a div to center a video on a page?
    Hard do tell out of context.

    Just looking for feedback on the question, shouldn't that be something that should just work in wordpress?
    what is the "that" that is supposed to just work?


    just sayin'

  3. #3
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,250
    Mentioned
    196 Post(s)
    Tagged
    2 Thread(s)
    I wouldn't say anyone is "forcing" anyone. Just that's how they're doing it.

    IMHO if you're concerned about tag (and class) bloat, WordPress isn't for you.
    Sure, it can be nice to have a lot of things to use in styling, but most go unused and only add confusion.

  4. #4
    SitePoint Addict bronze trophy mawburn's Avatar
    Join Date
    Apr 2014
    Posts
    273
    Mentioned
    8 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by RaphaelLove View Post
    Why would a developer force you to use a div to center a video on a page?
    Cause... containers. How else would you do it? o.O

    Applying effects to other elements doesn't always achieve the desired effects in every browser. Divs on the other hand usually do. AFAIK, using containers is considered good practice even if you can achieve the effect through some other way. That's the way I do it and I'll continue to do it until I'm proven wrong for some reason or better methods are developed.

  5. #5
    SitePoint Member
    Join Date
    Jun 2014
    Location
    Charlotte, NC
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by pdxSherpa View Post
    Hard do tell out of context.


    what is the "that" that is supposed to just work?


    just sayin'
    I gotcha... I wasn't clear on the that.

    I meant that a simple click to center a video should be sufficient.

  6. #6
    SitePoint Member
    Join Date
    Jun 2014
    Location
    Charlotte, NC
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by mawburn View Post
    Cause... containers. How else would you do it? o.O

    Applying effects other elements doesn't always achieve the desired effects in every browser. Divs on the other hand usually do. AFAIK, using containers is considered good practice even if you can achieve the effect through some other way.

    I did not look at it from a container perspective.
    I was going around tossing <center>Bla bla bla</center> like salt on popcorn.

  7. #7
    SitePoint Addict bronze trophy mawburn's Avatar
    Join Date
    Apr 2014
    Posts
    273
    Mentioned
    8 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by RaphaelLove View Post
    I did not look at it from a container perspective.
    I was going around tossing <center>Bla bla bla</center> like salt on popcorn.
    <center> is deprecated. You should not use that anywhere.

    https://developer.mozilla.org/en-US/...Element/center

    This tag has been deprecated in HTML 4 (and XHTML 1) in favor of the CSS text-align property, which can be applied to the <div> element or to an individual <p>.

  8. #8
    SitePoint Member
    Join Date
    Jun 2014
    Location
    Charlotte, NC
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by mawburn View Post
    <center> is deprecated. You should not use that anywhere.

    https://developer.mozilla.org/en-US/...Element/center
    Thanks for that...

    I have seen that in the past. But was still using the old html. It makes sense now.


Tags for this Thread

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
  •