Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7992883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:41:53+00:00 2026-06-04T13:41:53+00:00

This works (i.e. the input sliders are correct width): <!DOCTYPE HTML PUBLIC -//W3C//DTD HTML

  • 0

This works (i.e. the input sliders are correct width):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <style type="text/css" media="screen">

      div {
        margin-bottom: 1em;
      }

      code {
        color: gray;
      }

      .slider {
        width: 250px;
        height: 25px; 
      }
    </style>
  </head>
  <body>

    <div>
      <code>/qc/lfo/1</code><br />
      <input class="slider" id="/qc/lfo/1" type="range" />
    </div>

    <div>
      <code>/range/1-3</code><br />
      <input class="slider" type="range" value="0" min="0" max="100" onchange="send('/range/1', parseInt(this.value))" /><br />
      <input class="slider" type="range" value="0" min="0" max="100" onchange="send('/range/2', parseInt(this.value))" /><br />
      <input class="slider" type="range" value="0" min="0" max="100" onchange="send('/range/3', parseInt(this.value))" />
    </div>
  </body>
</html>

However when I load the CSS from an external file the width styling is lost (but not the other styles):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <link  rel="stylesheet" type="text/css" media="screen" href="websocket.css" /> 
  </head>
  <body>

    <div>
      <code>/qc/lfo/1</code><br />
      <input class="slider" id="/qc/lfo/1" type="range" />
    </div>

    <div>
      <code>/range/1-3</code><br />
      <input class="slider" type="range" value="0" min="0" max="100" onchange="send('/range/1', parseInt(this.value))" /><br />
      <input class="slider" type="range" value="0" min="0" max="100" onchange="send('/range/2', parseInt(this.value))" /><br />
      <input class="slider" type="range" value="0" min="0" max="100" onchange="send('/range/3', parseInt(this.value))" />
    </div>


  </body>
</html>

With CSS stylesheet file:

div {
   margin-bottom: 1em;
}

code {
  color:maroon;
  font-family: Geneva
}

.slider {
  width: 200 px;
  height: 25px;
}

The sliders are not correct width, yet the other styles colour; font & margin are correct. Previewing in Coda 1.7 Coda 2.0 and Safari — all incorrect width. Have tried making parent element wider and a bunch of other random things… what am I not getting here?


Oh dear could it be the space between “200” and “px” I;ve retyped this CSS code many times I couldn’t have kept doing same mistake could I?


Another thing that was tricking me was the times I did have the CSS right (no space before ‘px’), it was not updating in Safari when I hit Cmd+Opt+”B” in Coda. Only when I reloaded the page (Cmd+”R” in Safari did it look correct).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T13:41:55+00:00Added an answer on June 4, 2026 at 1:41 pm

    just write

    width: 200px;
    

    instead of

    width: 200 px;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<input type=button value=Back onClick=window.navigate('http://www.google.com')> This works on IE8, but not firefox or opera. Anyone
Check this code: http://jsfiddle.net/ZXN4S/1/ HTML: <div class=input> <input type=text size=50 id=test_input> <input type=submit value=send
This works in Opera but apparently nothing else. HTML <input type=checkbox name=iphone value=checked checked=checked
This syntax works in FF <input data-bind=checked: isRequest, attr: { name: 'id_' + id
This code below works in all web browsers except IE: <input type="text" name="passwordLogin" value="Password"
This works fine: $.getJSON(http://localhost:59396/xxxWeb/ CarouselHandler.ashx?action=getproducts&ids= + ids, function(data) { carousel.size(allProductIDs.length); if (numberOfImagesLeftToShow < numberOfImagesToDisplay)
$('#searchBox input').focus(function(){ console.log(true); $('nav').addClass('searching'); }); $('#searchBox input').blur(function(){ console.log(false) $('nav').removeClass('searching'); }); this works fine: adds
This works fine but when I have two sliders, the javasctript causes problems because
Js File //Modified from http://www.beyondstandards.com/archives/input-placeholders/ function activatePlaceholders() { var detect = navigator.userAgent.toLowerCase(); if (detect.indexOf(safari)
This works: <input type=checkbox {{if (ON) }} checked {{/if}} id=cbCentral /> This doesn't work:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.