ULX

Author Topic: ulx_motd.txt - Cascading Style Sheets  (Read 1937 times)

0 Members and 1 Guest are viewing this topic.

Offline lawsonk

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
ulx_motd.txt - Cascading Style Sheets
« on: March 25, 2014, 07:12:53 AM »
Is it possible for the ulx_motd.txt file to link and use a style sheet just such as a regular .html would?

Example being:
<link rel="stylesheet" href="style.css" type="text/css" media="screen">
If so I'm having difficulty getting it to read the CSS files.

Or must the styling be done in the ulx_motd file itself?


-lawsonk

Offline Avoid

  • Full Member
  • ***
  • Posts: 142
  • Karma: 42
Re: ulx_motd.txt - Cascading Style Sheets
« Reply #1 on: March 25, 2014, 09:51:15 AM »
Hello there,
I'd recommend uploading your MOTD to a webspace of your choice, and set "ulx showMotd" to http://www.yourwebspace.com/motd.html

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ulx_motd.txt - Cascading Style Sheets
« Reply #2 on: March 25, 2014, 02:52:19 PM »
Source html, not ULX, won't allow other files (css/js/jpg/gif/whatever) to be referenced on the local file system from a local html file unless it's hosted on a publicly accessible http server somewhere.
ie, <style=css href="http://mysite.com/mystyle.css">, but if you're going that far, might as well use your own web server link as Avoid suggest.
If only using the local txt file, it would need to be done inside the original file. HTML/CSS is fine, within limits of what the Source HTML/Gmod allows for. (I remember having issues with dynamic div tags/dropdown years ago, it might be better now)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming