Apoologies in advance for the slightly long winded code in this question
@charset "UTF-8";
/* CSS Document */
* {
margin:0;
padding:0;
font-family:Arial, Helvetica, sans-serif;
}
#wrapper {
width:900px;
margin:0 auto 0 auto;
}
#header {
background-color:#800080;
width:894px;
min-height:60px;
paddin...
I have a menu, I would like to highlight the sub menu item based on the page they are in. Can I use a div tag with an id on the page, and in css if the id is there then highlight the item.
in body
<div id="doc3"></div>
then in css
#doc3 #menu li#subnav-5-1 a
I tried this but dosent seem to work. How can I change the style of an...
A thing that I noticed about most JavaScript frameworks is that the most common way to find/access the DOM elements is to use CSS selectors.
However this usually requires the framework to include a CSS selector parser, because they need to support selectors, that the browser natively doesn't, foremost the frameworks own proprietary ext...
When Webkit (Safari, Chrome) encounters an inline-block where...
the line-height height is specified
the content is rendered using multiple line-boxes
...the inline-block element ignores the specified vertical-align.
To help illustrate the problem, I have a small test case:
http://arther.net/lab/webkit-vertical-align-test.html#test
...
I'm trying to create a page with a number of static html tables on them.
What do I need to do to get them to display each column the same size as each other column in the table?
The HTML is as follows:
<span class="Emphasis">Interest rates</span><br />
<table cellpadding="0px" cellspacing="0px" class="PerformanceTable">
<tr><th c...
On my website http://nebkat.com/beta/index.php I added a sidebar. On the homepage there are two posts. The problem is that the second one always goes under the sidebar content. How do I move it up without using margins(example:margin-top: -50px)
...
hi,
I've to make the background of my fading-in menu items semi-transparent.
It has to be grey but still I need to see what's below it.
What's an easy cross-browser solution for semi-transparency ? (Possibly without using images)
thanks
...
When printing the page below in Safari/Chrome, the content (everything on the page, basically) is squished into the left side of the page, at about 60% of the page's width.
However, in FireFox and IE 7, the printed page shows the content as the full width (and looks quite nice, imo). I resized all the layout elements to 100% width (usin...
I have the following html structure
<div style="overflow-x:auto;overflow-y:hidden;position:relative">
<div style="position:absolute; top:0;bottom:0;padding-top:30px">
</div>
</div>
When the inner div expands the outer bar gets its scroll bars. But the scroll bars appear on top of the inner div (blocking its contents). Work...
I have the following list:
<ul>
<li class="topCurrent">One
<ul>
<li>One-1
<ul>
<li>One-1.1
<ul>
<li class="current">One-1.1.1
<ul>
<li>One-1.1.1.1</li>
<li>...
my website : http://www.equipe94.com have a two column layout and in ie6 the right column is flushed at the button... it look like and inline problem, but even WITH the inline widget.. it's still at the bottom..
any idea to fix a wordpress template to play well with ie6 ?
thanks in advance
n.b.
As mentioned in the comment... my page ...
Hey guys, I'm solving one task and I need to create a piece of CSS what would apply only in Safari, NOT the other WebKit browser (mustn't apply in Chrome, f.e.). Please, could anyone toss in some ideas?
...
Hello,
I have a web application whose performance I am working to enhance. In an attempt to do this, I decided to use css sprites. I have placed all of my images in a .png file called images.png.
CSS sprites have worked well for all css classes that just display an image once. However, several of my images need to be repeated. For inst...
Here is the code:
<style type="text/css">
html, body {font:0.9em/1.2em arial, verdana, helvetica, sans-serif;}
#todayOn {background-color:#efefef; repeat-x top left;border-bottom:1px solid #ddd;border-top:1px solid #ddd;height:52px;margin:15px 0;}
#todayOn #pageTitle {float:left;padding-left:3px;}
#todayOn #pageTitle h2 {col...
I'm trying to set the width of the style for a group of < dt > elements in a Zend_Form.
Is there a way to set a class for a dt element, so the end result would be something like this:
<dt id="name-label" class="xyz" > // trying to add the 'class="xyz"
<label class="required" for="name">Name:</label>
</dt>
<dd id=...
Is there a way in HTML4 and/or CSS to do the following, but then correctly:
(2)
How can I move my expression to the left, under the ¯ symbols, such that they overlap eachother? Note: it should work on every font-size.
Thanks!
(My current code, thank you Matthew Jones(+1) for the text-decoration: overline, lacks the scalin...
hi,
I want to display a children element of my html page all over the browser window.. in other words I would like to enlarge it and keep it the same size the browser window also when it is resized after loading.
I was wondering if I have to move this object outside the parent elements or I can set these properties with css.
At the mo...
If I have 2 tables:
<table id="Table1">
<tr>
<td></td><td></td><td></td>
</tr>
</table>
<table id="Table2">
<tr>
<td></td><td></td><td></td><td></td>
</tr>
</table>
The first has 3 columns, the second has 4 columns.
How can I define a style to represent both tables when I want Table1's cell width to ...
Is there a way to store the font-size/line-height in a Sass variable like this:
$font-normal: 14px/21px;
Using this declaration I get a division as described in the documentation. Is there a way to avoid the division?
Note: I use the scss syntax.
...
I got into a math problem
my content box is 700pc wide
my hentry (inside content) is 100% wide with padding of 10px
wich make the hentry to be wider that the content resulting and overflow...
Any solution
Here is the page : http://www.equipe94.com
I have firebug and removing the width 100% work, but it send by wordpress so how to ov...