I'm using Hpricot to parse an html page, but need to get the computed styles for each element. For example, if I have an h1 Hpricot element and the external CSS for the page has a background-image defined for h1's, how can I find out what the background-image is?
...
I have the following css that works within Firefox but not i.e.? Obviously the fonts are within the directory... Any suggestions?
@font-face {
font-family: "Futura";
src: url("../fonts/Futura_Medium_BT.eot"); /* IE */
src: local("Futura"), url( "../fonts/Futura_Medium_BT.ttf" ) format("truetype"); /* non-I...
for example I have a css in test.css given below.
.test {
top:100px;
}
how can i increment top property from GWT ?
...
I have div with height="400px" and width="25px".How to expand div when the content overflows?
...
I have wierd CSS displaying problem with IE7 and IE6.
http://www.photopoint.ee there are three UL LI list-menus which doesn't have CSS style in IE7.
With IE8, Chrome, FF, Opera everything works as expected.
I validated CSS and HTML with w3.org validator, there were no "critical errors" which could be the source of the problem.
I'm ou...
Please take a look at this website using IE 7.
On the right side there is a small set of li elements inside a box.
The "website:........." line is not inside the white box. I want it to be inside the box like the email content.
Can someone help me in this regard by checking the source code. IE gives me a lot of pain :(
Thanks in adva...
I have the following html code , and I want to search the Welcome and make it bold .
<div class="welcome-msg">Welcome, First Name | </div>
the Output should be like this using DOM manipulation.
<div class="welcome-msg"><strong>Welcome</strong>, First Name | </div>
thanks ..
...
I've been using LESS and I find it very useful
I would like to have CSS syntax highlight in Vim with all .less files.
Any suggestions?
...
I've seen a lot of ways of adding variables in CSS (e.g. SASS and LESS).
What are the pro and cons of changing from this:
#div-one, #div-two {
color: blue;
}
to this:
@default: blue;
#div-one {
color: @default;
}
#div-two {
color: @default;
}
...
I've been using LESS CSS and I find it great. The only drawback is that the code is not shown on firebug's inspector.
IS there a way of dealing with this problem?
...
i am using a table with alternate row color with this.
css
tr.d0 td {
background-color: #CC9999; color: black;
}
tr.d1 td {
background-color: #9999CC; color: black;
}
html
<table>
<tr class="d0"><td>One</td><td>one</td></tr>
<tr class="d1"><td>Two</td><td>two</td></tr>
</table>
here i am using class for tr but i want to u...
hi all
I am pulling emails into my ruby on rails web app and displaying them from users to see and reply etc within my app.
Problem is the emails css when displaying the email effects my sites css and visa versa.
Any one know the best solutition to the problem ?
Can use an iframe i suppost but dont think secure ?
cheers
Rick
...
I'm using CSS/Javascript to show tooltips for various inputs on mouseover. This works in a lot of various conditions but I'm having some trouble with inputs within a modal Jquery UI Dialog.
When I open the dialog the first time, it works 100% fine (tooltips show up in front of dialog), but if I close it and re-open it (without reloading ...
i noticed that less.js is working in firefox but not in chrome, or isit because i made an error?
<link rel="stylesheet/less" href="css/style.less" />
<script src="http://lesscss.googlecode.com/files/less-1.0.21.min.js"></script>
@highlight: #cb1e16;
@shade1: #cb1e16;
@tone1: #5c6f7d;
@grad1: #e6edf3;
@grad2: #8a8d92;
@text1: ...
Hello guys,
i have a basic two column webpage i did with css. it includes a header,footer,sidebar and bodycontent.
i'd like to generate css attached to the document dynamically so it will change the arrangement and color.
if i open the page with urlencoded values like page color, body color, sidebar position(left or right).
i can do ...
Hi,
Just wondering of anyone knows of any fix to stop the flickering of the superfish menu that expands out over an iframe using IE6 as I am unsure of how to fix or if there is in actual fact, a fix for it.
When I have a vertical menu that extends out to the right with menu options over an iframe, the menu flickers on every menu branch...
i noticed that in the following example, note the classes, i am using 960gs in case the classes css interfered
html
<section id="main" class="container_12">
<div class="grid_12">
<article>
...
css
header, footer, section, article, nav, aside { display: block; }
#main { background: #fff; }
i noticed that #main has a heig...
i am using text-decoration:underline; but text and underline are touching each other.can i increase space between text and underline?
this one. i want to make space between text and underline.
...
I've been able to do this in Chrome and Firefox, and I thought I had it working in IE7 and IE8, but alas, I must've been dreaming.
Basically I have the following HTML:
<style>
div,li,ul {
margin: 0;
padding: 0;
border: 0;
outline: 0;
}
ul,li {
list-style: none;
}
div#container {
display: inline-block;
width: 600...
Hi
I've been trying to make my subnav active when on the relevant page and have been trawling forums etc for days/weeks!! I'm quite new to CSS and would appreciate any help!
I've managed to make the top nav button active with a#current but the subnav doesn't follow. I know I'm probably missing out something really basic but I just don't...