Tag Archives: css

How to apply wordpress css styles to a new independent form?

Im working on a plugin for wordpress and Im using jqueryUi to show a nice dialog popup when a link is clicked, in questo modo:
jScript:

$('#showMe').live('click', function (e) {

e.preventDefault();
var page = $(this).attr("href")
var pagetitle = $(this).attr("title")
var $dialog 

Continua a leggere

Tagged , , | Lascia un commento

WordPress: styling excerpt/content multiple times

I’m new to wordpress and PHP, and after a while trying to code a magazine style layout using multiple loops, a friend turned me onto styling one loop with multiple post appearances using children.
Esempio:

.hentry:first-child {
background-color: gray;
height: 

Continua a leggere

Tagged , , | Lascia un commento

How to use same header.php file for all contentc php files in all directory

I have create header file like below.

<style type="text/css" >
.menu{
    width: 100%;
    /*background-color: #333; */}
.menu ul{
    margin: 0; padding: 0;
    float: left;}

.menu ul li{
    display: inline;}

.menu ul li a{
    float: left; text-decoration: none;
    color: #000;
    padding: 

Continua a leggere

Tagged , , , , | Lascia un commento

WordPress navigation not displaying

I have a wordpress site that should be displaying a navigation bar (Pagina 1, pagina 2, ecc).
The navigation is contained in wp-pagenavi.php
The index page contains a loop contained in loop.php. The navigation call sits at the end ofContinua a leggere

Tagged , , , | Lascia un commento

Sfondo css in php

I used style.php as a style file..
and this is a part of that file

.<?php echo $cty2; ?> {
background: url(images/<?php echo $cty2; ?>.jpg) no-repeat;
}

when I go to style.php (del browser), this will appear

.newyorkny {
background: url(images/newyorkny.jpg) 

Continua a leggere

Tagged , , | Lascia un commento

Target only the 'li' that is the parent of an 'a' with a specific class [chiuso]

Eventuali duplicati:
Is there a CSS parent selector?

<ul class="page-numbers">
    <li><a href="/blog/page/1/" class="prev page-numbers">«</a></li>
    <li><a href="/blog/page/1/" class="page-numbers">1</a></li>
    <li><span class="page-numbers current">2</span></li>
    <li><a href="/blog/page/3/" class="page-numbers">3</a></li>
    <li><a href="/blog/page/4/" class="page-numbers">4</a></li>
</ul>

Is there a way to target only the li… that is the parent Continua a leggere

Tagged , | Lascia un commento

Target only the 'li' that is the child of an 'a' with a specific class

<ul class="page-numbers">
    <li><a href="/blog/page/1/" class="prev page-numbers">«</a></li>
    <li><a href="/blog/page/1/" class="page-numbers">1</a></li>
    <li><span class="page-numbers current">2</span></li>
    <li><a href="/blog/page/3/" class="page-numbers">3</a></li>
    <li><a href="/blog/page/4/" class="page-numbers">4</a></li>
</ul>

Is there a way to target only the li that is the parent of a.prev? Non posso usare first-child… perché Continua a leggere

Tagged , | Lascia un commento

DIV's height automatic adjust

I’m using div’s en css code, to get some values out of a mysql database.
Funziona bene. But if the value in the database is longer than 1 fila, the table with div’s doesn’t look nice.
This is theContinua a leggere

Tagged , , , | 1 Come

Log in system + news feed error

I’m creating a log in + news feed site. I’ve set up all the databases which are needed.
This is the code for all of the sites:
Index.php:

<?php

session_start();

 mysql_pconnect("MyServer","Username","Password");
  mysql_select_db("Database_Name");

  $page = $_GET['page'];

   ?>

   <html>
   <head>
   <meta http-equiv="Content-Type" 

Continua a leggere

Tagged , , , | Lascia un commento

Why str replace worked in first matched only?

Il mio codice:

$css=".class1{
    padding:1330px 2220px 0 auto;
    padding:10px auto 0 20px;
    padding:101px auto 0 200px;
}";

$search=self::extract_unit($css,"padding:",";");

extract_unit: this function extracts content between [padding:] e [;]
will return 1330px auto 0 2220px

$replace=self::resort_padding_margin($search);

resort_padding_margin: this function resorts the content
will Continua a leggere

Tagged , , , , | Lascia un commento
47 pagine