What remove inline style to css file - css

I have a problem. When i try to move inline style to css file l write this code .
#slider1_container{
position:relative;
top:0px;
left:0px;
Width:600px;
height:300px;
overflow:hidden;
}
#slider1_container.load{
position:absolute;
top:0px;
left:0px;
}
#slider1_container. load .f{
filter:alfa(opacity=70)
opacity:0.7;
position:absolute;
display:block;
background-color:#000000;
top;0px;
left:0px;
width:100%;
height:100%,
}
#slider1_container.load .p{
position:absolute;
display:block;
top:0px;
left:0px;
width :100%;
height:100%;
Background:url(../img/loading.gif
no-repeat center center
}
But when i move tag slides, slideshow dosn't work
I want know what do i move div slides to file css. can you help me.
Thanks

Are you including the CSS file correctly within your page?
with the CSS above you're missing a closing brace from the background image url and you're also using a capitalized "Background" which is incorrect.
background:url(../img/loading.gif) no-repeat center center;
Also where is your css and image "loading.gif" located?

Related

2 Divs with position fixed and absolute with top 0

I am using this CSS:
html{
height:100%;
}
#Nav{
position:fixed;
top:0;
}
#Heading{
position:absolute;
top:0;
}
The problem is that when using the DIV #Heading in the HTML file, it will cause a scrollbar.
So is it impossible to use two DIVs with "fixed" positioning and top 0?
When I remove the second div (position:absolute) the scrollbar disappears.
Could you tell me how to code the CSS correctly?
Thanks a lot!
I've found hear a solution:
Make body have 100% of the browser height
html { height:100%; }
body { position:absolute; top:0; bottom:0; right:0; left:0; }
The next problem is that I want to add a DIV with position: absolute to the bottom of the site, but this DIV is hanging in the middle of the page.

Fixed header in an horizontal parralax responsive website

Here is the example.
http://www.poste-ton-look.com/OneMuze/index.html
I try to keep the header as the footer display in this example. Full width with a fixed top position.
The problem is that i making this website responsive with horizontal navigation : if i horizontaly scroll, the header ends. If i try to display the header in a fixed/absolute top position it will kill it.
The goal is to keep the header responsive adjustments, in a full width top-center position.
Thank you for your help,
Sorry for my english.
Seb.
This is how I would proceed to get you aim :
FIDDLE
HTML:
<header></header>
<section>
<span>bla</span>
<span>bli</span>
<span>blu</span>
...
</section>
<footer></footer>
CSS:
*{
margin:0;
padding:0;
}
html,body{
height:100%;
width:100%;
}
header,footer{
position:fixed;
left:0;
width:100%;
height:50px
}
header{
top:0;
background:red;
}
section{
height:100%;
width:4000px;
background:green;
}
span{
position:relative;
top:100px;
margin:100px;
}
footer{
bottom:0;
background:yellow;
}

z-index & height not working for my div

I have a page news.html which is php included in my index.html - inside a #content div.
news.html has another div, which floats on the right and has a vertical line jpg to separate it from the main content, adds and stuff like that will be placed there.
Problem is I can't get it to 100% height(although it works for the line jpg) and I think the reason is some css issue. I also cannot place it below the footer for some reason, so that the 100% height line does not override it.
I use a main.css file for every page.
If I use position:fixed for the #poll div height 100% works, but then when zooming in/out of the browser my div moves which is not what I want. I know there is a min-width property but didn't seem to work for me.
Here is my code:
index.html:
//Content div is placed inside a #main table//
<div id="content"><?php include "news.html"?></div>
main.css:
html, body{
height:100%;
}
#main{
width:1010px;
height:100%;
z-index:2;
}
#content{
margin-top: 303px;
height:100%;
z-index:1;
}
#footer{
z-index:2;
}
#poll{
height:100%
background-color:rgba(255,0,0,0.6);
float:right;
z-index:1;
}
news.html
<div id="poll"><div style="background-image:url(images/vertical.jpg); width:5px; height:100%; background-repeat:repeat-y; vertical-align:top; position:fixed; top:0; z-index:0;"></div>
<div>POLL CONTENT HERE</div>
</div>
If you use z-index then give to at least one position relative or absolute
Then it will work, like this:
{
z-index:2;
position:relative;
}
How to work Z-index Link here
z-index only works if you specify the position attribute for the element. So for each element for which you have given a z-index you need to specify the position to be either
position: relative;
or
position: absolute;

IE7 - % width on floated div not applied

The width of the float div when applied % work fine in ie 8,9,10 but not in 7.
here is the jsfiddle http://jsfiddle.net/NHuH8/6
the comment and close need to be # either ends.what need to be done
thanks
You can use an absolute position for the comment and close divs
CSS:
#child1{
background-color:blue;
width:300px;
border: 1px solid yellow;
margin-bottom:15px;
}
#child3{
background-color:yellow;
width:auto;
position:relative;
}
#comment{
position:absolute;
bottom:0px;
left:0px;
}
#close{
position:absolute;
bottom:0px;
right:0px;
}
Fiddle
Give the "parent" CSS declaration a width in pixels.
Get rid of your widths and set the 'close' to float: right;. And put 'close' before 'comment', or 'close' will end up on the next line.

Arrangement Div tags like this?

I'm gonna create two div tags with CSS that appear in the page like below :
alt text http://xs.to/image-5E61_4B88C82D.jpg
Would you please guide me, how I should write the CSS codes?
Thanks.
try this
#div-01
{
position :absolute;
top:0px;
left:0px;
height:600px;
width:800px;
background-color:gray;
}
#div-02
{
position :absolute;
top:0px;
left:200px;
height:500px;
width:400px;
background-color:yellow;
}
I suggest this
#div-01
{
z-index:1;
height:300px;
width:800px;
background-color:gray;
}
#div-02
{
z-index:2;
height:500px;
width:400px;
background-color:yellow;
}
<div id="div-01">
<div id="div-02"></div>
</div>
Update: Fixed For Two DIVs
Demonstration :)
Please see the source code...

Resources