Archivo de la etiqueta: css
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.
Ejemplo:
.hentry:first-child {
background-color: gray;
height: …
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: …
Antecedentes css en php
Yo style.php como un archivo de estilo..
y esto es una parte de ese archivo
.<?php echo $cty2; ?> {
background: url(images/<?php echo $cty2; ?>.jpg) no-repeat;
}
cuando voy a style.php (navegador), este aparecerá
.newyorkny {
background: url(images/newyorkny.jpg) …
Target only the 'li' that is the parent of an 'a' with a specific class [cerrado]
Duplicar posibles:
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 Sigue leyendo
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? No puedo usar first-child… porque Sigue leyendo
DIV's height automatic adjust
I’m using div’s en css code, to get some values out of a mysql database.
Trabaja muy bien. But if the value in the database is longer than 1 fila, the table with div’s doesn’t look nice.
Este es el… Sigue leyendo
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" …
Why str replace worked in first matched only?
Mi 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 [relleno:] y [;]
will return 1330px auto 0 2220px
$replace=self::resort_padding_margin($search);
…
resort_padding_margin: this function resorts the content
voluntad Sigue leyendo
CSS PHP that i am struggling with
I am having a hard time figuring out what’s going on with a theme for a new script that i just bought.
My site is azngirls.com (don’t worry it’s not pornographic hahah) and if you go to the frontpage you… Sigue leyendo





