wordpress_add

Showing posts with label css. Show all posts
Showing posts with label css. Show all posts

Wednesday, 22 October 2014

Change Css of Other element onhover

For example you have this structure
<div id="dr-wordpress">
                      <h1 id="web" > This is my Blog </h1>
</div>
If the web is directly inside the "dr-wordpress":
#dr-wordpress:hover > #web { background-color: yellow; }
If web is next to (after containers closing tag) the "dr-wordpress":
#dr-wordpress:hover + #web { background-color: yellow; }
If the web is somewhere inside the "dr-wordpress":
#dr-wordpress:hover #web { background-color: yellow; }

Subscribe us for Important Knowledge of word press.Your's suggestions are most welcomed..

Wednesday, 4 June 2014

Menu Navigation Code which supports all browser

Navigation Code which supports all browser (IE6 - IE11)

=====CSS====

.menu {
height: 45px;
background-color:#9D2522;
color:#9D2522;
float:left;
width: 100%;
margin-top: 2%;
}
.menu ul, .menu li {
margin: 0px;
padding: 0px;
list-style: none;
}
.menu li {
height: 45px;
float: left;
font-size: 15px;
font-family: MyriadPro-Regular;
}
.menu li a {
text-decoration: none;
display: block;
color: #FFF;
padding: 16px 39px 12px 39px;

}
.menu li a.first {
background-image: none;
}
.menu li a:hover {
background-color:#3c0d0a;
text-decoration:none;
}

=====HTML====

 <div class="menu">
    <ul>
    <li class="first_li"><a href="#" class="first">Menu 1</a></li>
            <li><a href="#">Menu 2</a></li>
            <li><a href="#"> Menu 3</a> </li>
            <li><a href="#">Menu 4</a></li>
            

    </ul>

  </div><!--Nav-->

Subscribe Dr-Wordpress for Important Knowledge of wordpress..your's suggestions are most welcomed.

Friday, 10 January 2014

Get checkbox value in PHP

Get checkbox value in PHP



<form action="index.php" method="post">

 <input type="checkbox" name="language[]" value="php" />PHP<br /> 
<input type="checkbox" name="language[]" value="html" />HTML<br /> 
<input type="checkbox" name="language[]" value="java" />Java<br />
 <input type="checkbox" name="language[]" value="c++" />C++<br /> 
<input type="submit" value="send" />

 </form>


foreach($_POST['language'] as $value)
 {
    echo 'Checked: '.$value.' ';
 }

If you check all the checkboxes, this script will output: 

Checked: php
Checked: html
Checked: java
Checked: c++

Subscribe Dr-Wordpress for Important Knowledge of wordpress..your's suggestions are most welcomed.

Wednesday, 8 January 2014

Interview questions for Software Developers

Interview questions for fresher Software developers

hi i found a website where lots of important queries were asked. Visit this link

For php

http://www.pcds.co.in/php-interview-questions-and-answer.php

for .net development

http://www.pcds.co.in/dot-net-interview-questions-and-answers.php

Android Interview Questions And Answers

http://www.pcds.co.in/common-android-interview-questions-and-answers.php

Here is the link of blog which helps You alot for preparing interview questions


Subscribe Dr-Wordpress for Important Knowledge of wordpress..your's suggestions are most welcomed.

Friday, 20 December 2013

Button styling using css.

Submit button style using css. dr-wordpress

Time saving practice just copy and paste this code all the input button got same styling.
I don't like the default button style.

input[type=submit]
{
width: 60px;
margin: 0;
margin-left: 8px;
border: 0;
border-radius: 2px;
-moz-border-radius: 2px;
background: #000;
background: rgba(0,0,0,.6);
color: #fff;
cursor: pointer;
font-size: 13px;
height: 26px;
z-index: 0;
}

Subscribe Dr-Wordpress for Important Knowledge of wordpress..your's suggestions are most welcomed.

Thursday, 7 November 2013

DR-WORDPRESS : How to make responsive design through media query.

At different resolution some time we need different style ( css ) for a particular div or span etc so we use media query for it.


NOTE: 980px means That less than 980px resolution   this is style is active.

 @media screen and (max-width: 980px) {

#header .inner 
{
    float: left;
    padding-left: 0px;
    width: 475px;
}

 }


Subscribe Dr-Wordpress for Important Knowledge of wordpress..your's suggestions are most welcomed.

Tuesday, 29 October 2013

Convert image into gradient color..!!! Dr-wordpress

Here is the URL of website which convert image into gradient color and gave code to user to use it on any website etc... Dr-wordpress
Wordpress Solutions Steps :

http://gradientfinder.com/

Uplaod your image 
And than it will auto generate the code of that image 


Subscribe Dr-Wordpress for Important Knowledge of wordpress..your's suggestions are most welcomed.



Wednesday, 18 September 2013

How to style the sub menu in word press Complete code..!!! Dr-wordpress

Here is the exact code to style you sub menu in wordpress.
Before using It just keep in mind the few things.
Note : .menu is the main menu.
           ( you can change it according to your design )

After It Just paste these line to your style Sheet. Than your menu is completely styled Just Change the color and effects according to you web design.. 

.menu
{
width:660px;
height:30px;
float:left;
margin-left:4px;
margin-top:30px;
}



.menu ul, .menu li {
    list-style: none outside none;
    margin: 0;
    padding: 0;
}
.menu li {
  /*  background-image: url("images/sep.gif");*/
    background-position: 0 15px;
    background-repeat: no-repeat;
    float: left;
    margin-left: 5px;
    margin-top: 2px;
    padding-left: 9px;
    position: relative;
}
.menu li.first {
    background-image: none;
    padding-left: 0;
}
.menu li a {
    color: #FFFFFF;
    display: block;
    padding: 8px 5px;
    text-decoration: none;
}
.menu li a:hover {
    color: #A59B00;
    text-decoration: none;
}
.menu ul {
    margin-left: 26px;
    margin-top: 43px;
}
.menu ul ul {
    display: none;
    float: left;
    left: 0;
    margin: 0;
    position: absolute;
    top: 34px;
    width: 150px;
    z-index: 200;
}
.menu ul ul li {
    background: none repeat scroll 0 0 transparent;
    border-bottom: 1px solid #716A00;
    float: none;
    height: auto;
    margin: 0;
    min-width: 120px;
    padding: 0;
}
.menu ul ul li a {
    background-color: #B7AF34;
    color: #FFFFFF;
    display: block;
    height: auto;
    line-height: 1em;
    padding: 5px 10px;
    text-decoration: none;
}
.menu ul ul li a:hover {
    background-color: #D2CA55;
    color: #FFFFFF;
}
.menu ul ul ul {
    left: 100%;
    top: 0;
}
.menu ul li:hover > ul {
    display: block;
}
.menu ul li.current_page_item > a, .menu ul li.current_page_ancestor > a, .menu ul li.current_menu_item > a, .menu ul li.current_page_parent > a {
    color: #A59B00;
}


Subscribe Dr-Wordpress for Important Knowledge of wordpress..your's suggestions are most welcomed.




Monday, 9 September 2013

To allign the content in ( internet Explorer) IE.....

To align the Webpage in IE use these lines for alignment.

<style type="text/css">
body{text-align: center}
div{text-align: left; width: 50em; margin:0 auto; border:1px solid #CCCCCC}
</style>


Subscribe us for Important Knowledge of word press.Your's suggestions are most welcomed..