Is it possible to do this with just inline CSS?

Discussion in 'HTML & Website Design' started by kinkarso, May 23, 2014.

  1. #1
    This has been killing me - the CMS that I'm working with only allows for inline CSS.

    Would it be possible to code this with only inline CSS?:
    http://d.pr/i/MVor

    (where the menu links on the left will change the video displayed accordingly)

    Thanks!
     
    kinkarso, May 23, 2014 IP
  2. msx

    msx Member

    Messages:
    34
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    30
    #2
    I don't think this is possible without events, can you add javascript somewhere? or if you can edit anchors on menu to add "onclick" or similar?
     
    msx, May 23, 2014 IP
  3. COBOLdinosaur

    COBOLdinosaur Active Member

    Messages:
    515
    Likes Received:
    123
    Best Answers:
    11
    Trophy Points:
    95
    #3
    Why would even consider using a CMS that does not allow basic good practice like external stylesheets. Without seeing it or knowing its name I already know it is junk. Get rid of it and if you actually want to do something creative and/or relevant then either develop your own code or find something that does not put you in handcuffs, a blindfold, and boxing gloves when you need to thread a needle.
     
    COBOLdinosaur, May 24, 2014 IP
    ketting00 and deathshadow like this.
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #4
    That right there is probably the best advice you could be given. My "what a pile of crap" sense started tingling with the OP's first sentence.
     
    deathshadow, May 24, 2014 IP
  5. Ann Gilman

    Ann Gilman Greenhorn

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #5
    You could just update to a better CMS as others have said. It does seem odd that it only allows for inline. If you are open up the file in dream weaver or even in a text document you should be able to add an external style sheet. I know some of these CMS scripts are difficult to rework the entire code but, if you want to get into that you can.
    Sometimes the administration area of the script will give you options or an area to paste your code in.
    As long as you can use JavaScript then you can get that menu to work the way you want. By using the DOM or document object model you can change css properties. For example. document.getElementById("element").style.backgroundColor="blue"; So when they move their mouse over the item it turns the color you want. So I guess it comes down to whether or not you can use JavaScript. Hope that helped
     
    Ann Gilman, Mar 31, 2015 IP