css

change font in jquery Not working

I have the following code i am trying to change the font of a peice of text but it keeps coming up with a page error. function edit_font(div_id) { $("#testsave").html(<strong onclick=\"javascript:save_font_stuff("+div_id+",font,'Arial')\">Done!</strong> } function save_font_stuff(div_id,font_setting,settings_vaule) { if(...

CSS Ordered List Problem

I have an ordered list that I am trying to mark up the HTML can be seen below: <ol class="main tags"> <li class="main">Gump...</li> <li>We ar...</li> <li>We a...</li> </ol> The CSS looks like this: ol.tags { list-style: decimal none outside; } ol.tags li { background: transparent url(../images/tag.jpg) no-re...

What's the css for setting a form select element's width and horizontal position?

Should width be treated instead with an html attribute? I know about left and right margin for setting horizontal position, but the validation messages from my javascript are being messed up when using margenleft{ margin-left:120px; } on a different resolution, how can I do this relatively? I want the select el...

How do I correct the line-height inconsistency on input elements between webkit browsers and Firefox?

Is there a line-height discrepancy in Firefox that would be affecting the line-height on this input element? http://cure.org/curekids/ You'll see in the signup form right in the middle of the page that my email a dress input field has the text vertically aligned very awkward, whereas in Chrome, Safari and IE (gasp) all is well. What's ...

How To Display List of Sites One At A Time

I am looking for a way to display a list of websites one at a time from a URL list. I'm fine with a very manual solution, I found an AJAX solution where each "page" is displayed in a tab but it is very heavy because if I have 50 pages I want users to page through one at a time, this solution essentially pulls all 50 pages onto the one p...

Html table width

I have code like this: <table width="625px"> <tr style="background-color:#CCC; font-size:14px;"> <td style="padding:8px; color:#333"><center><?=stripslashes($arr['signature']);?> </center></td> </tr> If $arr['signature'] is a long string, like this gjuytfdcrtrfdscvythgfvtfdgtrfdvbgfvcfgbdc the width doesn't help and it g...

How to add background image in a textbox using jquery.

I have a textbox I want to change the watermark on focus. Please correct me: $('body').ready(function() { $('#edit-submitted-full-name').focus(function() { $(this).css({background:'#FFFFFF'}); }); $('#edit-submitted-full-name').blur(function() { if ($(this).val() == '') { $(this).css({background...

CSS - Different between .nav-link:visited and .nav-link a:visited

Hello all, I see the following usage of CSS and I add my understanding in the end of the rule. .nav-link:visited, // control any link that has class .nav-link and is visited .nav-link a:visited // control any a link that is visited and is a child of component with class .nav-link { color: #006699; } For example, <a class="nav-link...

How do I give separate classes to the styling of the month and year in the Wordpress Date function?

I'm in wordpress, trying to format the date output. This is the code I'm using at present: <div class="date"><?php the_date('M, Y'); ?></div> It's output looks like this: MAY, 2010 What I want to do is have the date display like this (The month on top of the year): MAY 2010 I'm just not familiar enough with PHP to get things w...

Remove Resize handles and border from elements with contentEditable

Hi Guys! The problem I'm having is with the contentEditable attribute in IE. (some things never change). The problem is that I'm getting resize handles, and a thick border around <li> elements when they're in focus. Any idea of how to remove them? CSS or Javascript tricks are very welcome! ...

CSS - How to remove comments and make CSS one line

Hello all, I would like to know how to remove all comments in CSS file and make all rules into one line. I do have access to Dreamweaver CS4. Thank you ...

Do not round .width() in jQuery

Hi everyone, I've searched around and couldn't find this. I'm trying to get the width of a div, but if it has a decimal point it rounds the number. example: #container{ background: blue; width: 543.5px; height: 20px; margin: 0; padding: 0; } if I do $('#container').width(); it will return 543 instead of 543.5. How do I get it to ...

Override child css-property

How do I override a child css-property. Example, the text should be black: <div style="color: Black;"> <div style="color: Red;">Red text that should be black.</div> </div> Since I got some answers that suggest that I should not use inline styles, I should tell you that this is not an option, at least not for the inner div. ...

How to apply CSS to a DialogBox using ClientBundle?

Hi I'm trying to apply some CSS to my subclass of DialogBox via ClientBundle. When inspecting the DOM I can see an obfuscated class-name got added (class="gwt-DialogBox GF2AVPFBPD") but it does not bear/apply any propertes/changes... class RegistrationDialog extends DialogBox { interface MyClientBundle extends ClientBundle ...

Three part dynamic spacing wo/Table and Absolute Positioning

I'm trying to place 3 divs within a larger div such that the center one is 800px wide, and centered, and the other two fill the space remaining. I cannot use tables, nor can I use absolute positioning, as I have html below that must be outside the three divs but inside the larger div. I can get the center div: .center-div { width: 8...

ASP.net 3.5 layout issue

Greeting, I have asp.net content page that has more than 30 asp.net controls. all the control set with style="position:absolute" I know it is not good practice for ASP.NET web page globalization using style="position:absolute. Now is there a way to convert my current asp.net page layout to be fit with most of the internet browser. I...

How do I get my text centered below the image, not adjacent to it?

In the HTML markup below, what do I need to do in order to get the text, "What is this?" to be positioned BELOW the image? Initially, I placed the text in <p> tags but, although the text was positioned correclty, I lost my desired hyperlink behavior. Thanks! <div class="HorizontallyCentered"> <a href="qr.aspx"> <img alt="...

Using css to display a variable portion of an image

I'm making a progress bar to show progress towards a donation goal. My image is shaped like a thermometer, with a rounded bottom. Here is the code I'm using to display the bar <div style="width: 179px; height: <%: 484 * Model.PercentToGoal %>px; background-image: url(../Content/Images/meter_fill.png); color: inherit; position: absolu...

Using Javascript to get around SEO concerns

Hello! I would like to know at which stage is it okay to start manipulating HTML elements/content using Javascript so as not to impair SEO? I have read somewhere that HTML content that is hidden using the CSS property display:none is often penalized by Google crawlers, with good reason from what I'm led to believe...I ask this as I in...

Formating Div by width of image inside it

How do i set the table under the images to be the same width as the image above? Thanks for your help! http://cran-web.com/letaky/generate/10 EDIT: I was talking about "tab_cena", not "tab_objednavky". Sorry for misunderstanding. ...