1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Limit text length using CSS problem

Discussion in 'CSS' started by Divvy, Jul 28, 2017.

  1. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,151
    Likes Received:
    1,656
    Best Answers:
    29
    Trophy Points:
    475
    #21
    I don't know what you use there for the code, and I am not about to visit your site, since it wants to download something (as I read up there). When and how did it become an image sprite? All the jsfiddle links I checked don't have an image sprite code. You're giving a lot of conflicting info there.
     
    qwikad.com, Jul 29, 2017 IP
  2. Divvy

    Divvy Well-Known Member

    Messages:
    781
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #22
    Divvy, Jul 29, 2017 IP
  3. mmerlinn

    mmerlinn Prominent Member

    Messages:
    3,197
    Likes Received:
    818
    Best Answers:
    7
    Trophy Points:
    320
    #23
    mmerlinn, Jul 29, 2017 IP
  4. Divvy

    Divvy Well-Known Member

    Messages:
    781
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #24
    Last edited: Jul 29, 2017
    Divvy, Jul 29, 2017 IP
  5. mmerlinn

    mmerlinn Prominent Member

    Messages:
    3,197
    Likes Received:
    818
    Best Answers:
    7
    Trophy Points:
    320
    #25
    So, if Google has errors it is ok to have errors on our sites? That is like saying that if a thief does not get caught that we should all be thieves.

    You may have no malware now, but errors can, and often do, open the door to malware later on. Allowing any potential doors for malware intrusion means that sooner or later your site will be hacked.
     
    mmerlinn, Jul 29, 2017 IP
  6. Divvy

    Divvy Well-Known Member

    Messages:
    781
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #26
    Instead of complain about the website code of others, have you seen your website too? It have more errors than mine:

    https://validator.w3.org/nu/?showsource=yes&acceptlanguage=&doc=http://mmerlinn.com/
    https://validator.w3.org/nu/?showsource=yes&acceptlanguage=&doc=http://mmerlinn.com/catalog/makeridx.htm

    Anyway, for those people who tried to help me, I already solved my issue, I changed from 4 columns to 3 columns and now I have more space to bigger texts.
    Thank you anyway guys :)

    Problem solved!
     
    Divvy, Jul 29, 2017 IP
  7. mmerlinn

    mmerlinn Prominent Member

    Messages:
    3,197
    Likes Received:
    818
    Best Answers:
    7
    Trophy Points:
    320
    #27
    @Divvy.

    I periodically check my site. When I find errors I fix them. If you have found an error PLEASE show me where SO I CAN FIX IT TOMORROW.

    As you can see below, both my landing page and my main index page are error free:

    http://validator.w3.org/check?uri=http://mmerlinn.com/catalog/makeridx.htm&charset=(detect+automatically)&doctype=Inline&group=0
    http://validator.w3.org/check?uri=http://mmerlinn.com/&charset=(detect+automatically)&doctype=Inline&group=0&user-agent=W3C_Validator/1.3+http://validator.w3.org/services
     
    mmerlinn, Jul 29, 2017 IP
  8. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #28
    I wouldn't go that far. "Valid" CSS is a pipe-dream thanks to browser incompatibilities and the stupid malfing vendor prefixes.

    But really there's little reason for invalid HTML.

    Though as to the OP's problem, overflow:hidden AND a fixed width should be all that's needed.... too bad the site is 'down' right now, there are alignment issues galore in the screencaps that really shouldn't be happening. Though being turdpresss with all the stupid malfing div for nothing, static style="" in the markup, and likely the associated dozen or so separate CSS files just pissing all over the place, the REAL problem (apart from the shit code EVERYTHING turdpress related squeezes out) was likely one of specificity.
     
    deathshadow, Jul 31, 2017 IP
  9. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #29
    I would propose that there is a difference between "errors" and "consciously chosing to use specific code available for a subset of users" (like prefixes in CSS). It's the same as the stupid validator now frowning on media="screen, projection, tv" - fuck off, I say, I really don't care if this is considered "wrong".
     
    PoPSiCLe, Aug 2, 2017 IP
  10. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #30
    Well that's just the ****tards working on HTML 5 forgetting what HTML is FOR and everything 4 strict was about. Why in the hell are possible media targets ANY of the HTML specifications business -- that just locks vendors out of creating new and innovative targets.

    Kind of like how AUDIO and VIDEO on top of being idiotic dumbass pointless redundancies, also PROMOTE vendor lock-in to whatever pet codec/container combinations the browser makers favor instead of letting third parties in... all justified by claiming it's protecting us from Adobe's vendor lock-in with flash. RIGHT.

    Well, it's that and the W3C lumping the new JavaScript features and all the cool CSS3 stuff under HTML 5's banner, as without them the emperor is standing there bare for the world to see.
     
    deathshadow, Aug 2, 2017 IP
  11. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #31
    Agreed. I'm mostly coding HTML 4 Strict, with the HTML 5 doctype just for the benefit of being able to use any of its "features" if need be. (And it's a hell of a lot faster to type :D)
     
    PoPSiCLe, Aug 2, 2017 IP
  12. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #32
    Only three really good things in HTML 5.

    1) Less code from </head> up thanks to the doctype, reduced charset meta, etc, etc...

    2) Enhanced input types and validation

    3) Documentation for <hr> comes CLOSER to saying what a horizontal rule is for -- too bad the dipshits say it's paragraph level instead of HEADING level.

    I would list CANVAS, but I still question WHY IN THE **** DOES THIS EVEN HAVE A TAG SINCE IT'S 100% JAVASCRIPT!?!
     
    deathshadow, Aug 2, 2017 IP