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, this way:
jScript:

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

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

Continue lendo

Tagged , , | Deixe um comentário

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

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

Continue lendo

Tagged , , | Deixe um comentário

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: 

Continue lendo

Tagged , , , , | Deixe um comentário

WordPress navigation not displaying

I have a wordpress site that should be displaying a navigation bar (Página 1, página 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 ofContinue lendo

Tagged , , , | Deixe um comentário

Background css em 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 (browser), this will appear

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

Continue lendo

Tagged , , | Deixe um comentário

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

Duplicate possível:
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 Continue lendo

Tagged , | Deixe um comentário

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? Eu não posso usar first-child… porque Continue lendo

Tagged , | Deixe um comentário

DIV's height automatic adjust

I’m using div’s en css code, to get some values out of a mysql database.
Ele funciona muito bem. But if the value in the database is longer than 1 linha, the table with div’s doesn’t look nice.
Este é o… Continue lendo

Tagged , , , | 1 Como

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" 

Continue lendo

Tagged , , , | Deixe um comentário

Why str replace worked in first matched only?

Meu código:

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

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

resort_padding_margin: this function resorts the content
vontade Continue lendo

Tagged , , , , | Deixe um comentário
47 páginas