Fork me on GitHub

"nowrap" for Edit and Delete in Admin Tables  Bottom

  • This isn't a big deal, but hey, small things bother me. There is one thing that I noticed in PostNuke that looks a bit sloppy, this is in several of the admin tables where you have the option to edit or delete a story. What happens is you'll get the opening bracket and "Edit" on one line, then maybe "Delete" or the closing bracket on a second line. It isn't a big deal, but all that needs to be done to fix it is to add "nowrap" to the td element (which is what I've done). If you want specifics I can try to find the mods I've made and post them, but if you know the code, which I don't, these things shouldn't be too hard to find.
  • Specifics won't be necessary, but thanks. See, the nowrap tag is deprecated ... so to apply this to the PN core would be a step in the wrong direction.
  • alarconcepts

    See, the nowrap tag is deprecated ...


    And what would you use instead?

    Code

    <td style="white-space: nowrap;">


    maybe? Thats not depricated is it?

    http://www.w3schools…ext_white-space.asp
  • I would think, if nowrap is deprecated, it must have been replaced with something hopefully relatively simple, and whatever that is is what should be used.
  • autoresponse

    alarconcepts

    See, the nowrap tag is deprecated ...


    And what would you use instead?

    Code

    <td style="white-space: nowrap;">


    maybe? Thats not depricated is it?

    http://www.w3schools…ext_white-space.asp


    Though I can't comment with any authority on it, I'm under the impression that all nowrap is deprecated.

    If tables must be relied upon for layout (and we do know they shouldn't!) we could just create a row somewhere near the bottom of the table and insert a spacer.gif (with complete markup of course!) to hold open a column to it's desired width. The borders could be hidden a la the CSS border property for those 's. You could also use the CSS width property for the , but I'm not sure how x-browser that really is.
  • Drek

    I would think, if nowrap is deprecated, it must have been replaced with something hopefully relatively simple, and whatever that is is what should be used.


    Not necessarily the case, I don't think. After all, the font tag is deprecated in favor of proper methods, but without a comparable new tag being added.
  • It is the HTML tag <nowrap> that has been depriciated. The CSS nowrap is the way to go. Unless of course you don't want to do anything to change the formatting error. ;)

    Jim</nowrap>
  • Jim and AR are correct, CSS nowrap is the way to go and thanks to AR for putting that in. Reading though these forums, its interesting to note how many people post solutions to small problems like this as apposed to just posting withoutout even attempting to offer alternatives. In the end it's always those little bits of code and how to's that have helped to get Postnuke, and Open Source in general, this far.

This list is based on users active over the last 60 minutes.