|
I need to style some text within a pre-element. For that, I use an inline span-element like this:
<pre> some text <span style="background-color:#ddd;">and some text with a different background</span> and some more text </pre>
Then...
Started by Otey on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Inline versus block
The span element is inline, so it just changes the background for where you've the whitespace would be ignored as normal.)
<pre> some text <span style="background-color:#ddd;">pre> some....
|
|
I'm trying to fade the background-color of a span tag using JQuery to emphasize when a change has occured. I was thinking the code would be someting like the following inside the click handler, but I can't seem to get it working. Can you show me where...
Started by Russ Clark on
, 5 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
To get background fade way could be something like this:
$....
That's why you call fadeOut on the span tag.
You'll want to use this syntax:
$("span").fadeOut("slow").css("background-color", "#FFFF99 the functionality you need.
|
|
I'm trying to add an arrow image beside the text within a span. Here's the HTML I'm working with:
<span id="status" class='unreviewed'> Unreviewed <img src="bullet_arrow_down.png" /> </span>
Now, I've coloured the background of the span...
Started by Tim Sullivan on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Right; position: relative; cursor: pointer; -moz-background-clip:border; -moz-background-inline-policy:continuous; -moz-background-origin:padding; color:# ; font-size: 1.8em; top: 10px; }
change on inline elements
Well, What jumps....
|
Ask your Facebook Friends
|
I use tag in my module titles. e.g.
<span>Categories</span>.
I specify the span's background color/image, width and height in css.
But the span's width depends on it's content/text.
So, if i do <span></span> , with just a background...
Started by bgreen1989 on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
<span style="display:block; background-color:red; width:100px;"></span>
a multiple browser....
background: gray; width: 100px; display:block;">hello</span> <span style="background: gray instead.
|
|
I've got 4 spans in a row.
<div id=container> <span id="1">blue</span> <span id="2">red</span> <span id="center">all colors</span> <span id="3">grey</span> </div>
i want to have the 'all colors...
Started by noname on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
*shrug*
<div id="container"> <span class="float_l blue">blue</span> <span....
Each span to display: table-cell (and possibly the parent to table or table-row, don't know with the div set with display: table and width.
|
|
I have a span with no text, it looks like an image, it has background and padding. But it doesnot execute onclick event. What to do? Do I need obviously change span to everything else?
Started by dynback.com on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
And at least you need to include a space inside ... .
As i know if you want its background to be visible you need to set width and height for the spanMake sure there's something inside the span, e.g.:
<span> </span>
As far.
|
|
I have a text like this
"You are advised to grant access to these settings only if you are sure you want to allow this program to run automatically when your computer starts. Otherwise it is better to deny access."
and i have 3 selections,
1. StartIndex...
Started by Aruna Tennakoon on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Lt;span style= 'background-color:" + Color + "'>" + this.Text; } public string GetEndSpanHtml;Span>(); List<Span> intersectionSpanList = new List<Span>(); spanList.Add(new Span = 16 }); spanList.Add(new Span....
|
|
CSS: .events_holder { width:100%; background-color: #d9ceae; } .events_holder .event_holder { width:100%; float: left; min-height: 20px; } .events_holder .event_holder .event_data { border: thin gray dotted; font-size: 80%; float:left; min-height:20px...
Started by Malfist on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Try encasing....
Make all the line height atributes of each span a fixed height - this is the only way that they will all be the same height.
Span is an inline element, so its naturally not going to grow to the size of its parent in the way.
|
|
When a button is clicked it needs to look before its ocurance and find a specific span tag. Unfortunately it is either not finding the tag or not changing it's contents.
This is the code that doesn't work.
$(this).prev("span[id*=CommentText]").hide();...
Started by Middletone on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Http://docs.jquery.com/Traversing/prevAll
Try this:
$(this).parent().find("span[id*=CommentText....
Try this $("span[id*='CommentText']")
Have you tried using the .live event to bind the click event("span[id*='CommentText']") (not tested).
|
|
Hello guys.
I need to make following code stretchable with predefined height
<style> .title{ background: url(bg.gif) no-repeat bottom right; height: 25px; } </style> <span class="title">This is title</span>
But since span is inline...
Started by Kelvin on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Give it block properties to give it size:
.title{ display: block; background: url(bg.gif) no-repeat....
Why do you need a span in this case? If you want to style the height could you just use a div? You be doing the same thing as a span.
|