This is the css for setting the color for h1 text that is linked:
.nav-left h1 a, a:visited{
color:#055830;
}
<div class="nav-left">
<h1><a href="/index.php/housing/">Housing</a></h1>
</div>
It does not look like it is working appropriately, any help is appreciated.
...
I'm looking for a code library that converts ANSI escape sequences into HTML color, via plain tags or CSS. For example, something that would convert this:
ESC[00mESC[01;34mbinESC[00m
ESC[01;34mcodeESC[00m
ESC[01;31mdropbox-lnx.x86-0.6.404.tar.gzESC[00m
ESC[00mfooESC[00m
Into this:
<span style="color:blue">bin</span>
<span style="colo...
I am trying to add different styles within a textarea eg bold, different colors etc
WYSIWYG editors (eg tinyMCE) used in web pages typically do this but I am having trouble working out how they do it.
You cannot do this:
So how do they achieve it?
...
I have seen the following methods of putting javascript in an <a> tag:
function DoSomething() { ... return false; }
1: <a href="javascript:;" onClick="return DoSomething();">link</a>
2: <a href="javascript:return DoSomething();">link</a>
3: <a href="javascript:void(0);" onClick="return DoSomething();">link</a>
4: <a href="#" onClick="re...
Hi can we output a .jpg image or .gif image in c? I mean can we print a picture as output with the help of a c program?Aslo can we write a script in C language for html pages as can be written in javascript? Can the browsers operate on it?if not possible is there any plugin for any of the browsers?
any example code or links please?
...
I'd like to know if it's possible to force a newline to show in the tooltip when using title property of a TD.
something like
<td title="lineone \n linetwo \n etc...">
Can this be done?
...
I am experiencing some strange behavior of embedded audio (wav file) on HTML page.
I've got a page https://server.com/listen-to-sound, and a Wav file embedded in it via <EMBED/> tag, like this:
<embed src='https://server.com/path-to-sound' hidden="true" autostart="true" />
The page https://server.com/listen-to-sound is opened in IE 6 ...
I'm creating a new theme for the jCarousel component that I'll be
using for my web site and the dimension for this component will be:
width:485px , height:161px including the two arrows and what i want is
to have 3 items per cycle each having the a dimension of 140X100
(width X height) with 5px margin, and 3/4 of the skin is done but I'm...
I've found that given a form in a HTML page like this:
<form name="form">
<input type="image" name="foo"
src="somewhere.gif" alt="image" value="blah"/>
<input type="text" name="bar" value="blah"/>
</form>
When accessing the elements via the DOM in Javascript, there is no element for the image input! It is just omitte...
Been a while since I've dealt with ASP.NET and this is the first time I've had to deal with master pages. Been following tutorials everything is fine except a problem I'm having with the footer.
The master page has divs for topContent, mainContent and footerContent. In mainContent I have a ContentPlaceHolder.
The default content page...
I have not had to mess with mailto links much. However I now need to add a link in the body of a mailto if it is possible.
Is there a way to add a link or to change the email opened to an html email vs a text email?
Something like:
<a href="mailto:[email protected]?body=The message's first paragraph.%0A%0aSecond paragraph.%0A%0AThird ...
Hi,
Unfortunately on my project, we generate a lot of the HTML code in JavaScript like this:
var html = new StringBuffer();
html.append("<td class=\"gr-my-deals\"><a href=\"").append(deal.url).append("\" target=\"_blank\">").append(deal.description).append("</a></td>");
I have 2 specific complaints about this:
The use of escaped do...
I'm using jQuery validate on a form I am building and it is working great. What I want to do is when something is invalid to have the text field change colors and the error message to be white. I figured the following CSS would work:
label .error {color: white; font-weight: bold;}
input .error {background-color: pink; border: 1px dashed...
Does anyone know of a script that can select all text references to URLs and automatically replace them with anchor tags pointing to those locations?
For example:
http://www.google.com
would automatically turn into
<a href="http://www.google.com">http://www.google.com</a>
Note: I am wanting this because I don't want to go...
I've an image that is wrapped in an anchor tag that, through jQuery, triggers an action somewhere else on the page. When I click on the image, two tiny 1px by 1px boxes show up in the upper and lower left corners of the image.
My CSS styles explicitly state no borders for images: a,img { border: 0; }
It also seems to only happen in Fi...
svg is an xml based graphics and you can add JavaScripts to it. I have tried to access to the script functions defined in a svg. The script in my svg is something like this:
<svg ... onload="RunScript(evt);"...>
<script type="text/javascript">
...
function RunScript(loadEvent) {
// Get object in my html by id
var objElement = top.do...
What are the current best practices in the Rails world for displaying a calendar month view with event items bound to the days in the month (like in Backpack or Google Calendar, for example)?
I don't need anything like fancy stuff like drag and drop support. I'm just looking for code to let me get a list of events in my controller and ...
I already know: "Don't use css expressions!" My question is not about whether I should be using an expression or if there is an alternative; my question is simply: Can I get a css expression to only be evaluated in versions of IE prior to version 7 without using conditional comments?
I occasionally use an underscore hack to hide a rule...
pre tags are super-useful for code blocks and for debugging output when writing scripts, but how do I make the text word-wrap instead of running one long line?
...
I have defined a fieldset in HTML, and applied the following (simple) CSS rules to it:
fieldset
{
margin: 2em 0;
position:relative;
padding: 1em;
border:1px solid #ccc;
}
Everything is great, no big deal, except in all versions (well, up to 7 as far as I know) of IE the top border -- but not, interestingly, the bottom ...