I have a menu list. I'm not using UL/LI, just nested DIV's. There are graphic separators between the menu items. The first item in the list needs to suppress the left padding; the last item needs to suppress the right padding and the graphic separator. Here's the CSS:
.platformItem {
float: left;
padding: 0 12px;
background: u...
Is it possible? div "menu" and "submenu" needs to be 50px tall. "top" and "bottom" needs to be 60% and 40%. The behinde-the-scene-calculation would be 60% - 50px for "top".
<div id="menu"></div>
<div id="top">
</div>
<div id="submenu"></div>
<div id="bottom">
</div>
...
hey guys, how can I just achieve this simple layout? I'm hoping the answer will help me understand the basics of css layout and floats.
<div id="verticalElement1">
<div id="horizontalElement1">
some content
</div>
<div id="horizontalElement2">
some content
</div>
<div>
<div id="verticalElement2">
<div id="verticalE...
Let see my problem
I have an element which its width = 50px
and I have my string to put in that element "This text is longer than 50px and will be display in two or more lines"
What I want to get in my element is the text with 50px width + ... like this :
This text is longer than 50px and will...
Are there any good or possible way ...
Hi Guys,
I have inserted content using the :before pseudo-element for a class. I was trying to position this content using margin-top but firefox is simply ignoring the property. The code follows:
.bef {
line-height: 2em;
white-space: nowrap;
font-size:24px;
display: block;
}
.bef:before {
display: block;
margin-top:...
I have the following HTML code:
<ul class="blogEntry">
<li class="title section">
<span><asp:Literal ID="litTitle" runat="server" /></span>
<span class="date"><asp:Literal ID="litDate" runat="server" Text="10/1/1000" /></span>
</li>
<li class="body section"><asp:Literal ID="litBody" runat="server" /></li>
...
On my page I am changing some css styles via javascript. When I try and pull a value that has been inherited - it comes up blank. Consider the following:
.Sliding
{
display: none;
overflow: hidden;
}
.Sliding #FilterBox
{
height: 185px;
background-color: Fuchsia;
}
And the html:...
The dust me selectors FireFox plugin identifies unused css selectors. For large css files and many files, the manual deletion of the unused selectors is time consuming. Is there a tool that can automate this?
...
In my application I am using a div element. There is some extra space found below and above the div element.
How can I remove that?
Thanks
...
I used tag to indicate the importance of a sentence. However, it disrupted the consistency of the page style.
So I change it back with CSS. The result is that to visitors it is the same but to search engines(SEs), obviously, different. And this is what SEs are annoying about.
So my question is can SEs read CSS, and further judge the w...
Hi,
I have designed a frame in a window.
The frame size is fixed.
I dont have/dont want a scroll bar for the frame.
If the Text overflows in the frame,I want to have a windows scrolll bar instead of a frame
scroll bar for controlling the overflowing part.
thnks..
...
Two images, one is 300x400 pixels (height x width), the other is 500x600. How can I make them appear side-by-side, scaled so they are the same height on screen, filling the whole width of the page (or container/div), without changing the aspect ratio of either image?
I'd like an HTML/CSS way to do this -- something that works for more ...
I am trying to move a table up by 6px.
There is a table immediately above it, so this means they will have to overlap. Is this possible?
I have tried
.subNavBar {
position: relative;
top: -6px;
}
and
.subNavBar {
position: absolute;
top: -6px;
}
...
Hi Guys,
I have a form.In that iam having my customized data dropdown.In one case combo box is below the custom data dropdown.when i click the dropdown th div iam caling has to come top of the combo box.It is not coming on the top the stack.the combo box and div are overlapping.
Any Suggestions to solve these problem?
Thanks
Avinash ...
Ok... i manage two create it.
to those who aren't familiar with it i've wanted to create i background image with a gradiente and then a "frontground" image a plain white thing that all my page will go there.
i manage to do it ...but i noticed there was a 3rd element http://www.libertyseguros.pt/ between the gradient page and the white...
Do you think a fluid website should have limits for its width (such as min-width and max-width, and hacks for IE)? Well, that's because screen resolutions may be too high which is not that good for reading text contents. What'd you say?
...
I have the following jquery-code:
<script type="text/javascript">
$(document).ready(function() {
$ ('ul.image-list li:even').addClass ('even');
$ ('ul.image-list li:odd').addClass ('odd');
});
</script>
and the following html:
<ul class="image-list">
<li>first element</li>
<li>second element</li>
...
<li>last ...
rgb(255,255,255) notation has been available since CSS1. But #fffff seems to be vastly more popular.
Obviously it's slightly more compact. I know that hex is more closely related to the underlying bytes, and understand that there would be advantages in carrying out arithmetic on those values, but this isn't something you're going to do ...
I have a problem with a following sample html/css code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Sample</title>
<style type="text/css">
* { padding: 0; margin: 0; border: none; outline...
Hi Guys, I have a clients website - www.stagecraft.co.uk and they want the navigation on the hire pages (longer page) to still be there at when you scroll the page down. I've had a quick go (not live) with position fixed but in doing so it the leftside navigation is about 200px or so from the top of the window. Any when to get it at the ...