It seems that padding style applying to <td /> doesn't work on IE7 in my computer, but is okay on FireFox3.5.
Is this a correct behavior? Or I get wrong.
Thanks.
I am looking for how to style a label in a UITableView cell, so that it shows how many children/messages are in the next view controller.
This is used in Apple's Mail app, to show how many messages are in the inbox or account.
I am sure that this is a UILabel, but what font, color and how to make the oval around it?
I'm looking for a way to implement a bracket style border around my <h2> headings; I've attached an image showing exactly what I'm trying to accomplish.
The only way I can think of to achieve this effect is by using images, but I'm unsure of exactly how to do so(all of my <h2>s are of varying length/height, or if maybe there is a better way.
Any tips & insight are greatly appreciated.
Hi,
i have this page.
login: [email protected] password: m
You can see two selects in the filter for which i have this rule in gente.css:
td.select label{
margin-left:12px;
}
The problem: the rule is applied but doesn't appear in the Style tab of Firebug.
Any idea?
Regards
Javi
Hey everyone,
I'm trying to style my select box, I assume I need some type of javascript method.
I'm using rails - and sticking with prototype/scriptactulous.
Does anyone know of any solutions?
I would like to use Razor's feature not to produce attribute output inside a tag in case when attribute's value is null. So when Razor meets <div class="@var" where @var is null, the output will be mere <div. I've created some Html extension method to write text inside tag. The method takes header text, level (h1..h6), and html attributes as simple object. The code is:
public static MvcHtmlString WriteHeader(this HtmlHelper html, string s, int? hLevel = 1, object htmlAttributes = null)
{
if ((hLevel == null) ||
(hLevel < 1 || hLevel > 4) ||
(s.IsNullOrWhiteSpace()))
return new MvcHtmlString("");
string cssClass = null, cssId = null, cssStyle = null;
if (htmlAttributes != null)
{
var T = htmlAttributes.GetType();
var propInfo = T.GetProperty("class");
var o = propInfo.GetValue(htmlAttributes);
cssClass = o.ToString().IsNullOrWhiteSpace() ? null : o.ToString();
propInfo = T.GetProperty("id");
o = propInfo.GetValue(htmlAttributes);
cssId = o.ToString().IsNullOrWhiteSpace() ? null : o.ToString();
propInfo = T.GetProperty("style");
o = propInfo.GetValue(htmlAttributes);
cssStyle = o.ToString().IsNullOrWhiteSpace() ? null : o.ToString();
}
var hTag = new TagBuilder("h" + hLevel);
hTag.MergeAttribute("id", cssId);
hTag.MergeAttribute("class", cssClass);
hTag.MergeAttribute("style", cssStyle);
hTag.InnerHtml = s;
return new MvcHtmlString(hTag.ToString());
}
I found that in spite of null values for "class" and "style" attributes TagBuilder still puts them as empty strings, like <h1 class="" style="" But for id attribute it surprisingly works, so when id's value is null, there is no id attribute in tag.
My question - is such behavior something that should actually happen? How can I achieve absent attributes with null values using TagBuilder?
I tried this in VS2013, MVC 5.
I am using Artistic Style version 1.24(http://astyle.sourceforge.net/) for indenting the C++ program but while indentation,it crosses the column 78.Does it contain any option to prevent this?
I'm working in AutoCAD using the ObjectARX .Net API. Is there a way to either create text using lines/curves/polylines, or explode an existing text object into lines/ect? Prefereable I would like to be able to generate linework based on an exsiting AutoCAD text style.
Edit: I was able to find the source for the TxtExp command here . However its in AutoCADs own Lisp language, and I can't make heads or tails of it.
How do I export a word document to media wiki markup style
I have been trying to do it by following the steps given in http://en.wikipedia.org/wiki/Help:WordToWiki
but all in vain, not getting it.
Any help please.
Does anyone have a idea,how to use date/time function to write time like facebook/twitter style:
e.g. 5 min ago
e.g. 10 hours ago.
Does anyone have tutorial for asp.net..
I would like to style individual tabs of the tab bar of a QTabWidget (not hover or current but an individual one) WHY? because I need to get the user's attention so that he knows urgent information appeared in that tab. There can be multiple tabs that need attention.
Hi,
I really like the idea of putting forms into a seperate class that manages validation etc, but I don't like everything ending up in a DL and also not being able to use square bracket notation in post elements like <input type='checkbox' name='data[]'>.
Is there another way of generating forms - like in views so I can style them the way I want, but also keeping the validation aspect? Also how would I load this view into my current view (using partial view somehow?)
I have been trying to change the cursor style to look like a pointer rather than an I beam thing, but it looks like FF does not respect the cursor spec in an input file field. For example, I have made this small fiddle: http://jsfiddle.net/jDZtn/4/ where Id like the cursor to look like a pointer rather than an Ibeam when the user hovers over it. My end plan is to introduce opacity==0 and use a clickable button over it.
I am not sure if this behaviour is a bug or not.
I have a GtkEntry and I want to remove it's style, set from the gtkrc file.
I have tried gtk_widget_set_style(widget, NULL); but it is not working out.
Hello World!
Is their any way to apply a style resource to customize the Item Border in the Gallery Class with Android?
I'm trying to hide or change the color of the default Grey border but by the looks of things this isn't possible?
Any help or tips you can provide would be fantastic.
Appreciated,
Tom
I have navigation for which I need to set a color for the selected item. It's flat HTML and CSS.
Here's the menu code:
<ul id="top_navigation">
<li class="border_red"><a href="index.html">Home</a></li>
<li class="border_red"><a href="about.html">About</a></li>
<li class="border_red"><a href="services.html"><font color="#cf3533">Services</font></a></li>
<li class="border_red"><a href="careers.html">Careers</a></li>
<li class="border_red"><a href="news.html">News</a></li>
<li class="border_red"><a href="sitemap.html">Sitemap</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
And here's the CSS - there's the basic set up and then a class to put the pipe between the items:
#top_navigation {
width: 696px;
margin: 0px;
padding: 0 0 0 4px;
list-style-type: none;
overflow: hidden;
}
#top_navigation li {
width: auto;
height: 17px;
margin: 0px;
padding: 1px 10px 0 10px;
float: left;
}
#top_navigation li a {
margin: 0px;
padding: 0px;
display: block;
font-size: 12px;
text-align: center;
text-decoration: none;
}
#top_navigation li a:hover {
color: #cf3533;
}
This sets the pipe on the right.
.border_red {
border-right: 1px solid #d7d7d7;
}
I tried combining the two and creating a _selected style, and the pipe shows up, but I can't get the color to change for the selected.
I have to be WCAG Priorities 1,2,3-compliant, so I can't just set it manually with .
I'm trying to write a regular expression that finds C#-style unescaped strings, such as
string x = @"hello
world";
The problem I'm having is how to write a rule that handles double quotes within the string correctly, like in this example
string x = @"before quote ""junk"" after quote";
This should be an easy one, right?
Hi,
I've seen jquery used to change a form select drop down box in to a 'pretty' drop down list widget. I can't remember where I saw this but does anyone have any links or example code which show examples of how to use jquery to style form elements? I'd prefer it if it was code rather than a built in plug in.
Thanks
Hi,
I'm a Java developer starting with .Net development using VS.Net 2008. I would love to get the Eclipse style of navigating methods etc by pressing the Ctrl key, hover over a method then click it to got to that method's declaration. Does such a plugin exist for VS.Net 2008?
thanks
I have a simple slideshow (jQuery Cycle) that displays an image every ten seconds (7 total images). In an adjacent div, I have a list with 7 bullet points. What's the easiest way to script a method in which the css/style of the appropriate bullet point changes as its accompanying image. The idea is to have all list items displayed, but 1 highlighted every 10 seconds?
Background
Recently built my own PC. It works! Almost.
It's been a while since getting into the guts of these things, so I'm familiar but may be missing something simple.
FYI, I don't care about blowing the OS away -- it's brand new and we can go back from scratch as many times as necessary.
Goal / Issue
I'd like to use the SSD to take advantage of Intel's Smart Response technology (allows the SSD to act as a cache for HDDs)
I would like the SSD cache to act as a cache for my HDDs, which I would like to be in a RAID1 array (so I get the speed from the SSD and the redundancy from the RAID1)
However, Windows only sees the drive in device manager (not as a drive), so I'm unsure what to do about that.
Related: as far as I know, for this to work, the drives all have to be in a single RAID array (i.e. a RAID0 pairing of the SSD and the RAID1 HDD array).
However, when attempting this at the BIOS level, I am told there is not enough space for an array.
Steps so Far
Moved the SSD onto the Intel controller (I'd had it on the Marvel 6.0 controller instead of the Intel controller, so the BIOS was only seeing it in a strange way)
Updated the BIOS of the motherboard to the latest version
Reinstalled Intel's RST (iRST?) software several times, as some forums reported it working after reinstalling 3 times (which does not inspire confidence).
Checked Intel storage: it does see the SSD as a physical, non-RAID device. However, it says no space exists if I try to create an array.
Checked the BIOS: it does not show up in the boot order, but is an option that can be selected under boot options.
Tried the firmware update for that model. Issue: the firmware CD doesn't detect a drive; maybe the Intel storage controller is making it difficult?
moved the ssd to the marvel controller. The firmware update cd appeared to hang while searching for drives.
swapped out the SATA cable for the manufacturer's and moved back to the intel storage controller.
Noticed at this point that in the Intel RST software, a device DOES show up in addition to the RAID set -- only shown as a "60 GB internal disk". Windows doesn't appear to see it as a drive, but it does still show in device manager.
Move SSD to port from 0-3 on MOBO and set SATA mode to IDE (after disconnecting RAID1 config) to allow the firmware update to work. Firmware was already at the latest version.
Next Steps
?
Components involved
ASUS P8Z68-V PRO motherboard (Intel Z68 Chipset)
Intel i7 2600k Processor
2 x 1TB 7200 RPM HDDs
64 GB Crucial M4 SSD (M4-CT064M4SSD2)
For Reference -- Storage Configuration
Intel 3 gbps Intel 3gbps Intel 6gbps Marvel 6gbps
+----------+ +----------+ +----------+ +----------+
| | <----+ | | +-+ | | |
|----------| | |----------| |-|--------| |----------|
| | | | + | | | | | |
+----------+ | +--|-------+ +-|--------+ +----------+
| | |
+ v v
| 1 TB HDD 64 GB SSD
+
+> 1 TB HDD
For Reference -- Intel RST (v10.8.0.1003) Screenshot
Don't mind the "rebuilding" -- knocked a power cable out at one point; it's doing its job, not an indicator of a bad HDD.
Any thoughts? Thanks in advance for any help!