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

  • SEARCH
  • Home
  • 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 8452917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:37:44+00:00 2026-06-10T11:37:44+00:00

Hi I am teaching myself some backbone from tutorials, and I want to create

  • 0

Hi I am teaching myself some backbone from tutorials, and I want to create a table like display element using spans.

So I added a width element into my span in the template. (I know it isn’t the best place to put it, but it should take priority over stylesheet properties, and is just to get an idea during development).

<script type="text/template" id="loadedwith-template">
  <span  style="width:100" class="library"><%= library.name  %></span>
  <input style="width:100" class='input' type="text" />
  <button class="delete_lw" >delete</button>
</script>

However when I look at it in the browser, the element shows up as before without the width setting applied.

“Inspect element” in Chrome shows the width property, but is disabled (has a line like html strikethrough on it). This is the last thing shown in element styles before the computed styles section.

There is another stylesheet referencing the span. Is there anything causing the width to be disabled? The other stylesheet is as follows (borrowed from the backbone tutorial). (The span is inside a list).

    a { color: #2929FF; }
    a:visited { color: #777; }
    a:hover {
      color: #8F8FFF;
      text-decoration: none;
    }
    body, button { font: 100%/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif; }
    body {
      background: #FFF;
      color: #444;
      padding: 25px 50px;
    }
    button, .delete, .swap {
      border: 0;
      border-radius: 5px;
      color: #FFF;
      cursor: pointer;
      font-weight: bold;
      line-height: 1;
      text-align: center;
      text-transform: uppercase;
    }
    button:hover, .delete:hover, .swap:hover { opacity: 1; }
    button {
      background: #2929FF;
      font-size: 0.75em;
      padding: 7px 12px;
      opacity: .75;
    }
    h1 {
      font-size: 1.25em;
      letter-spacing: -0.5px;
    }
    p {
      color: #777;
      font: italic 0.75em/1.2 "Georgia", Palatino, "Times New Roman", Times, serif;
    }
    span {
      display: inline-block;
      margin-right: 10px;
    }
    ul { padding-left: 0; }
    .delete, .swap {
      font-size: 0.625em;
      opacity: .25;
      padding: 3px 10px;
      position: relative;
      top: -3px;
    }
    .delete { background: #FF29D0; }
    .swap { background: #FF6529; }
  • 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-10T11:37:46+00:00Added an answer on June 10, 2026 at 11:37 am

    You need to specify a unit of measurement

    Specifying CSS units is a requirement for non-zero values. Browsers may try to guess what you meant, but it would still be a broken stylesheet according to the standard.

    I.e. there is no “default unit” in CSS, it’s just that the browser may try to help you out, although it may as well just ignore your statement that doesn’t specify units as an invalid one.

    Try style="width:100px"

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm teaching myself some Django tonight using the local dev package at instantdjango.com I
I'm teaching myself Perl with the help of some internet tutorials, and for the
I'm teaching myself Python and I was translating some sample code into this class
Teaching myself the flow of data from mySQL -> PHP -> JSON / Javascript
I'm teaching myself Rails through PragProg's (apparently outdated - I'm using Rails 3.2.3) Rails
I'm teaching myself (read hacking) through some old Excel Macros that are quite long.
I'm currently teaching myself objective C. I've gone through the tutorials, but I find
I'm a Python(3.1.2)/emacs(23.2) newbie teaching myself tkinter using the pythonware tutorial found here .
I am teaching myself some Python and I have come across a problem which
I'm trying to learn some html/css/javascript, so I'm writing myself a teaching project. The

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.