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, de cette façon:
jScript:

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

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

Continuer la lecture

Tagged , , | Laisser un commentaire

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.
Exemple:

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

Continuer la lecture

Tagged , , | Laisser un commentaire

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: 

Continuer la lecture

Tagged , , , , | Laisser un commentaire

WordPress navigation not displaying

I have a wordpress site that should be displaying a navigation bar (Page 1, Page 2, etc).
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 ofContinuer la lecture

Tagged , , , | Laisser un commentaire

Contexte css 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 (navigateur), this will appear

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

Continuer la lecture

Tagged , , | Laisser un commentaire

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

Possible en double:
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 Continuer la lecture

Tagged , | Laisser un commentaire

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? Je ne peux pas utiliser first-child… parce Continuer la lecture

Tagged , | Laisser un commentaire

DIV's height automatic adjust

I’m using div’s en css code, to get some values out of a mysql database.
Cela fonctionne très bien. But if the value in the database is longer than 1 rangée, the table with div’s doesn’t look nice.
Il s'agit de la… Continuer la lecture

Tagged , , , | 1 Comment

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" 

Continuer la lecture

Tagged , , , | Laisser un commentaire

Pourquoi remplacer str travaillé dans le premier n'a d'égal que?

Mon code:

$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 [rembourrage:] et [;]
will return 1330px auto 0 2220px

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

resort_padding_margin: this function resorts the content
will Continuer la lecture

Tagged , , , , | Laisser un commentaire
47 pages