Aller au contenu

Justifier du texte


touchcream

Sujets conseillés

Bonjour je tiens un blog (dev.geek-technologie.fr) dont j'ai changé la "ligne éditorial" et il me parait important que le texte soit "justifié" (c'est à dire que chaque ligne soit remplie totalement, comme un bloc) cependant je n'ai aucune idée de comment l'intégrer dans mon fichier .css :unsure:

Donc voici mon fichier css (en entier, car je n'ai aucune idée d'où le mettre) :

CODE
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, * {

margin : 0;

padding : 0;

border : 0;

font-weight : inherit;

font-style : inherit;

font-size : 100%;

font-family : inherit;

vertical-align : baseline;

}

body {

color : #333;

background-image:url('img/bgtop.gif');

background-color : #fff;

background-repeat:repeat-x;

text-align : center;

padding : 20px 0;

font : 0.8em Helvetica, Arial, sans-serif;

}

h1, h2, h3, h4, h5, h6 {

font-weight : bold;

line-height : 1.4em;

}

p {

margin : 0;

padding : 0 0 10px 0;

text-align : left;

line-height : 2em;

}

li {

list-style : none;

}

a, a:visited {

color : #6699cc;

text-decoration : underline;

outline : 0;

}

a:hover {

text-decoration : none;

}

code {

font-family : Monospace, 'Courier New', Courier;

}

pre {

width : 100%;

overflow : auto;

font-family : Monospace, 'Courier new', Courier;

background : #fff;

border : 1px solid #dadada;

}

abbr, acronym {

border-bottom : 1px dashed;

cursor : help;

}

em, q {

font-style : italic;

}

strong {

font-weight : bold;

}

#page {

position : relative;

width : 900px;

margin : 0 auto;

padding : 0 20px 20px 20px;

text-align : left;

}

/* Header */

#top {

height : 160px;

padding : 0;

margin : 0 0 20px;

position : relative;

border-bottom : 1px solid #888888;

}

#top h1 {

max-width : 500px;

position : absolute;

top : 45px;

left : 0;

font-size : 1.6em;

}

#top h1 a {

color : #444444;

text-decoration : none;

}

#top h1 a:hover {

padding-right : 25px;

color : #888888;

}

#blogdesc {

padding : 0;

max-width : 500px;

position : absolute;

top : 70px;

left : 2px;

font-size : 0.85em;

}

#prelude {

display : block;

width : 100%;

height : 20px;

margin : 0;

padding : 2px 0 4px 0;

position : absolute;

top : 0;

left : 0;

color : #cccccc;

text-transform : lowercase;

border-bottom : 1px solid #fff;

font-size : 0.85em;

}

#prelude a, #prelude a:visited {

color : #ccc;

text-decoration : none;

}

#prelude a:hover {

color : #666666;

}

/* Custom wrapper's font-size */

/* Global Navigation */

#global-nav {

width : 100%;

padding : 0;

height : 40px;

position : absolute;

bottom : 2px;

left : 0;

background : #333333;

}

#global-nav ul li {

display : inline;

}

#global-nav li {

display : block;

float : left;

width : 99px;

height : 40px;

text-align : left;

overflow : hidden;

border-right : 1px solid #666666;

}

#global-nav li a, #global-nav li a:visited {

display : block;

margin : 0;

padding : 7px 0 0 10px;

width : 100%;

height : 100%;

color : #cccccc;

font-size : 0.8em;

text-decoration : none;

text-transform : uppercase;

font-weight : bold;

}

#global-nav li a:hover {

background : #222;

}

#global-nav li span {

font-weight : normal;

text-transform : lowercase;

}

#global-nav li#rss {

float : right;

border-left : 1px solid #666;

border-right : none;

}

#global-nav li .sub-nav {

position : absolute;

top : 40px;

}

#global-nav li .sub-nav li {

display : none;

height : 20px;

text-transform : lowercase;

border-color : #f8f8f6;

border-top : 1px solid #f8f8f6;

}

#global-nav li .sub-nav li a {

background : #555555;

text-transform : lowercase;

padding : 3px 0 0 10px;

}

#global-nav li .sub-nav li a:hover {

background : #333333;

}

#global-nav li:hover > .sub-nav li {

display : block;

}

/* Main Content */

#main {

width : 540px;

margin : 0;

padding : 0;

float : left;

}

#content {

margin : 0;

padding : 0;

}

#latest-post {

margin : 0;

padding : 5px 0;

text-transform : uppercase;

color : #666;

font-size : 0.85em;

border : 1px solid #ccc;

border-width : 1px 0;

}

.read-it {

padding : 0 0 20px 0;

text-transform : lowercase;

}

.read-it a {

font-size : 0.85em;

font-weight : bold;

}

.postoddfirst {

position : relative;

margin : 0;

padding : 0;

}

.postoddfirst .post-date {

display : none;

}

.postoddfirst .post-title {

padding : 20px 0 10px;

}

.postoddfirst .post-title a, .postoddfirst .post-title a:visited {

text-decoration : none;

color : #444;

font-size : 1.8em;

}

.postoddfirst .post-info {

font-size : 0.85em;

font-weight : bold;

}

.postoddfirst .post-info a {

color : #69c;

}

.postoddfirst .post-info-co {

text-align : right;

}

.postoddfirst .post-info-co a {

margin-left : 5px;

font-size : 0.85em;

}

.postoddfirst .post-info-co a.comment_count {

padding-left : 22px;

background : url('img/icon_comment.png') no-repeat left center;

}

.postoddfirst .post-info-co a.ping_count {

padding-left : 22px;

background : url('img/icon_ping.png') no-repeat left bottom;

}

.postoddfirst .post-info-co a.attach_count {

padding-left : 22px;

background : url('img/icon_attach.png') no-repeat left center;

}

.postoddfirst .read-it {

float : left;

}

.postodd {

margin : 0;

padding : 0;

position : relative;

border-top : 1px solid #ccc;

clear : both;

}

.postodd .post-date {

display : none;

}

.postodd .post-date span {

display : block;

text-align : center;

}

.postodd .post-date .day-date {

font-size : 2em;

}

.postodd .post-date .month-date {

font-size : 1.6em;

}

.postodd .post-date .year-date {

font-size : 1em;

}

.postodd .post-title {

padding : 20px 0 10px;

}

.postodd .post-title a, .postodd .post-title a:visited {

text-decoration : none;

color : #444;

font-size : 1.8em;

}

.postodd .post-info {

font-size : 0.85em;

font-weight : bold;

}

.postodd .post-info-co {

text-align : right;

}

.postodd .post-info-co a {

margin-left : 5px;

font-size : 0.85em;

}

.postodd .post-info-co a.comment_count {

padding-left : 22px;

background : url('img/icon_comment.png') no-repeat left center;

}

.postodd .read-it {

float : left;

}

.pagination {

display : block;

max-width : 500px;

margin : 20px 0 0;

padding : 2px 0;

color : #666;

border : 1px solid #ccc;

text-align : center;

border-width : 1px 0;

font-size : 0.85em;

clear : both;

}

.pagination a {

text-decoration : none;

}

.pagination a:hover {

text-decoration : underline;

}

#sidebar {

width : 300px;

margin : 0 1px 0 0;

padding : 40px 0;

float : right;

clear : none !important;

clear : left;

font-size : 0.85em;

background-image : url('img/bg_menu.jpg');

background-repeat : no-repeat;

}

#sidebar a {

color : #0066cc

text-decoration : none;

}

#sidebar h2 {

margin : 0 0 10px 0;

padding : 5px 0;

text-transform : uppercase;

color : #666;

font-size : 1em;

border : 1px solid #ccc;

border-width : 1px 0;

color : #666;

}

#sidebar h3 {

padding : 0 0 5px;

color : #666;

text-decoration : underline;

}

#sidebar ul {

padding : 0 0 10px;

}

#sidebar li {

padding : 5px 0;

}

#sidebar .lastposts, #sidebar .lastcomments, #sidebar .selected, #sidebar .categories, #sidebar .syndicate, #sidebar .feed, #sidebar .langs, #sidebar .tags, #sidebar .links, #sidebar .text, #sidebar #calendar {

margin : 0 10px 15px 15px;

padding : 0;

}

/* Sidebar LINKS */

#sidebar .links li {

margin-bottom : 4px;

background : url('img/icon_arrow.gif') no-repeat right center;

border-right : 2px solid #ccc;

border-bottom : 1px solid #ccc;

}

#sidebar .links li a {

color : #666;

text-decoration : none;

}

#sidebar .links li a:hover {

text-decoration : underline;

}

/* Sidebar CALENDAR */

#sidebar #calendar h2 {

display : none;

}

#sidebar #calendar table {

width : 100%;

padding : 5px 0 0;

text-align : center;

background : #eee;

}

#sidebar #calendar caption {

margin : 0;

padding : 5px 0;

text-transform : uppercase;

text-align : center;

color : #fff;

font-size : 1em;

font-weight : bold;

background : #444;

}

#sidebar #calendar th {

font-weight : bold;

padding : 5px 0;

text-transform : uppercase;

text-decoration : underline;

}

#sidebar #calendar td {

padding : 3px 0;

}

/* Sidebar CATEGORY */

#sidebar .categories li {

margin : 0 0 1px;

padding : 0;

}

#sidebar .categories li {

display : block;

padding : 5px 0;

border-bottom : 1px solid #ddd;

color : #666;

}

#sidebar .categories li a {

color : #666;

text-decoration : none;

}

#sidebar .categories li a:hover {

color : #333;

}

/* Sidebar TOPNAV */

#topnav {

padding : 0;

position : absolute;

top : 7px;

width : 240px;

}

#topnav ul {

float : right;

}

#topnav li {

display : inline;

color : #ccc;

}

#topnav li a {

color : #ccc;

text-transform : lowercase;

text-decoration : none;

}

#topnav li a:hover {

color : #666;

}

/* Sidebar SEARCH */

#search {

width : 230px;

margin : 0;

padding : 12px 0 5px 10px;

position : absolute;

top : 40px;

}

#search h2 {

border : none;

padding : 0 0 4px 0;

margin : 0;

font-size : 0.8em;

color : #aaa;

}

#search #q {

float : left;

background : #fff;

margin : 0;

padding : 2px;

width : 185px;

border : 1px solid #c8c8c6;

border-width : 1px 0 0 1px;

}

#search .submit {

color : #fff;

background : transparent;

font-weight : bold;

padding : 0 0 0 5px;

text-transform : uppercase;

}

/* Sidebar TAGS */

#sidebar .tags li {

padding : 0 5px 0 0;

display : inline;

line-height : 2.2em;

color : #6699cc;

}

.tag0 {

font-size : 75%;

}

.tag10 {

font-size : 80%;

}

.tag20 {

font-size : 90%;

}

.tag30 {

font-size : 100%;

}

.tag40 {

font-size : 110%;

}

.tag50 {

font-size : 120%;

}

.tag60 {

font-size : 140%;

}

.tag70 {

font-size : 150%;

}

.tag80 {

font-size : 160%;

}

.tag90 {

font-size : 170%;

}

.tag100 {

font-size : 180%;

}

#sidebar .tags p strong a {

text-decoration : none;

border-bottom : 1px dotted;

}

#sidebar .tags p strong a:hover {

border-bottom : 1px solid;

}

/* Sidebar FEED */

#sidebar .feed li {

padding-left : 20px;

background : url('img/icon_feed.gif') no-repeat left 7px;

}

/* Sidebar SYNDICATE */

#sidebar .syndicate li {

padding-left : 20px;

background : url('img/icon_syndicate.gif') no-repeat left 7px;

}

#sidebar .feed li a, #sidebar .syndicate li a {

color : #666;

}

/* Sidebar SELECTED */

#sidebar .selected li {

padding : 5px 25px 5px 0;

background : url('img/icon_bullet.gif') no-repeat 225px center;

border-bottom : 1px solid #ddd;

}

#sidebar .selected li a {

color : #666;

text-decoration : none;

}

#sidebar .selected li a:hover {

color : #6699cc;

}

/* Sidebar LAST POSTS */

#sidebar .lastposts li {

padding : 5px 0 5px 20px;

background : url('img/icon_permalink.gif') no-repeat left center;

border-bottom : 1px solid #ddd;

}

#sidebar .lastposts li a {

color : #999;

}

/* Sidebar LAST COMMENTS */

#sidebar .lastcomments li {

padding : 5px 0 5px 20px;

background : url('img/icon_comment.gif') no-repeat left center;

border-bottom : 1px solid #ddd;

}

#sidebar .lastcomments li a {

color : #999;

}

/* BROWSE PAGES : Search, Category, Tags */

#content-info {

margin : 0 0 20px 0;

}

#content-info h2 {

font-size : 1.4em;

color : #444;

}

#content-info p {

font-size : 0.9em;

}

#content-info a.feed {

display : block;

padding-left : 20px;

background : url('img/icon_syndicate.gif') no-repeat left center;

color : #444;

font-size : 1em;

}

.content-inner {

margin : 0 0 80px;

}

.content-inner ul.tags li {

display : inline;

line-height : 2.2em;

}

.content-inner ul.tags li a:hover {

background : #6699cc;

color : #fff;

}

/* Navlinks */

#navlinks {

margin : 0 0 20px 0;

padding : 1px 0 2px 0;

border : 1px solid #ccc;

border-width : 1px 0;

font-size : 0.85em;

text-align : center;

background : transparent;

}

#navlinks a {

color : #333;

text-decoration : none;

}

#navlinks a:hover {

color : #333;

text-decoration : underline;

}

/* TABS (selected posts on homepage) */

#featured {

width : 500px;

margin : 0;

padding : 0 0 0;

position : relative;

clear : both;

}

#featured .main-title {

width : 240px;

margin : 0;

padding : 5px 0;

text-transform : uppercase;

color : #666;

font-size : 0.85em;

border : 1px solid #ccc;

border-width : 1px 0;

}

#featured .post-feature {

width : 240px;

margin : 0;

padding : 20px 0;

float : right;

clear : right;

}

#featured .post-featureodd {

width : 240px;

margin : 0;

padding : 20px 0;

float : left;

clear : left;

}

#featured .post-title {

margin : 0;

padding : 0;

}

#featured .post-title a, #featured .post-title a:visited {

text-decoration : none;

font-size : 1.25em;

color : #666;

}

#featured .post-info {

font-size : 0.85em;

}

#featured .read-it {

padding : 0;

}

#all-feature .post-feature, #all-feature .post-featureodd {

border-bottom : 1px solid #ccc;

}

#all-feature .post-info {

padding : 0;

}

/* Link to page's top */

a.go-to-top, a:visited.go-to-top {

margin : 20px 0;

padding : 8px 30px 10px 40px;

font-size : 0.85em;

text-decoration : none;

color : #aaa;

display : block;

width : 430px;

background : url('img/icon_arrow-top.gif') no-repeat 20px center;

border-top : 1px solid #ddd;

border-bottom : 1px solid #ddd;

outline : 0;

}

/* Footer */

#footer {

margin : 0;

padding : 40px 0 2px;

clear : both;

border-bottom : 1px solid #ccc;

}

/* Footer (your adds should be here) */

#footer p#footer-info {

margin : 0;

padding : 10px 20px 10px 20px;

color : #888;

font-size : 0.8em;

font-weight : bold;

clear : both;

background : #e8e8e6;

text-align : right;

}

#footer p#footer-info a {

color : #888;

text-decoration : none;

border-bottom : 1px dotted;

}

#footer p#footer-info a:hover {

border-bottom : 1px solid;

}

#footer p#footer-info a#powered {

padding : 5px 70px 5px 0;

background : url('img/logo_dotclear.png') no-repeat right 5px;

border : none;

}

/* Footer (Thanks to Dotclear 2 !) */

#footer p#credits {

display : block;

width : 9px;

height : 241px;

margin : 0;

padding : 0;

position : absolute;

right : -15px;

bottom : 20px;

overflow : hidden;

}

#footer p#credits a {

display : block;

width : 100%;

height : 100%;

text-indent : -1000em;

background : url('img/credits.png') no-repeat left top;

}

J'espère que vous trouverez comment faire et merci d'avance pour vos réponses !

Modifié par Tizel
Lien vers le commentaire
Partager sur d’autres sites

Veuillez vous connecter pour commenter

Vous pourrez laisser un commentaire après vous êtes connecté.



Connectez-vous maintenant
×
×
  • Créer...