Litere mari din CSS

Coduri intrebari, probleme legate de HTML, XHTML si CSS

Litere mari din CSS

» 26 Noi, 2011

Buna, am si eu o intrebare. In site cand pun un text intre tagul <h2> imi pare cu litera mare, chiar daca in db am scris asa: Un Text

Nu am pus sa faca asta din PHP deci cred ca e din CSS... Poate ma puteti ajuta....scriptul este acesta:

Cod: Selectaţi tot
/*
   Design by Free CSS Templates
   http://www.freecsstemplates.org
   Released for free under a Creative Commons Attribution 2.5 License
*/

/* Basic */

*
{
   margin: 0em;
   padding: 0em;
}

h1,h2,h3,h4,h5,h6
{
   letter-spacing: 0.2em;
}

body
{
   font-family: "trebuchet ms", sans-serif;
   font-size: 10pt;
   background-color: #000000;
   color: #6F5129;
}

a
{
   color: #667700;
   text-decoration: underline;
}

a:hover
{
   text-decoration: none;
}

/* Outer */

#outer
{
   width: 778px;
   margin: 2em auto;
}

/* Header */

#header
{
   padding: 1.75em;
   text-align: center;
}

#header h1
{
   font-size: 2em;
}

#header h2
{
   font-size: 1em;
   color: #747474;
}

#header h1 a
{
   color: #fff;
   text-decoration: none;
}

/* Menu */

#menu
{
   background: #000000 url('images/a1.jpg') top left no-repeat;
   height: 94px;
   width: 778px;
}

#menu ul
{
   list-style: none;
   text-align: center;
   position: relative;
   top: 45px;
}

#menu li
{
   padding: 0em 1.5em 0em 1.5em;
   display: inline;
}

#menu li a
{
   color: #3A2000;
   font-weight: bold;
   text-transform: uppercase;
   text-decoration: none;
   font-size: 0.9em;
   letter-spacing: 0.2em;
}

#menu li a:hover
{
   text-decoration: underline;
}

/* Content */

#xbg1
{
   position: absolute;
   z-index: 1;
   background: #000000 url('images/a2.jpg') top left no-repeat;
   width: 778px;
   height: 98px;
}

#content
{
   background: #000000 url('images/a3.jpg') top left repeat-y;
}

#content p
{
   margin-bottom: 2em;
   line-height: 1.5em;
}

#content h2,h3,h4,h5,h6
{
   position: relative;
   color: #3F2109;
   margin-bottom: 1em;
   padding-bottom: 0.5em;
   border-bottom: solid 1px #DFBF99;
}

#content h2
{
   font-size: 1.5em;
}

#content h3
{
   font-size: 1.1em;
}

#content ul
{
   margin-bottom: 2em;
   padding-left: 1em;
}

#content blockquote
{
   margin-bottom: 2em;
}

#content blockquote #citat
{
   border-left: solid 8px #667700;
   padding-left: 1em;
   margin-bottom: 0em;
        background-image:url('citat.png');
        background-repeat:no-repeat;
        background-position:right top;
}

#content blockquote #script
{
   border-left: solid 8px blue;
   padding-left: 1em;
   margin-bottom: 0em;
        background-image:url('php.png');
        background-repeat:no-repeat;
        background-position:right top;
}

#content table
{
   margin-bottom: 2em;
}

#content table th
{
   text-align: left;
   font-weight: bold;
   padding: 0.5em;
}

#content table td
{
   padding: 0.5em;
}

#content table tr.rowA
{
   background-color: #DFBD99;
   color: inherit;
}

#content table tr.rowB
{
   background-color: #EFDCC2;
   color: inherit;
}

/* Primary Content */

#primaryContentContainer
{
   position: relative;
   z-index: 2;
   float: right;
   margin-left: -18em;
   width: 100%;
}

#primaryContent
{
   margin: 2em 3.0em 0em 19em;
   padding: 0em 0em 0em 1.5em;
   border-left: solid 1px #DFBF99;
}

/* Secondary Content */

#secondaryContent
{
   position: relative;
   z-index: 2;
   float: right;
   width: 15em;
   margin-top: 2em;
}

/* Footer */

#footer
{
   width: 778px;
   height: 56px;
   padding-top: 30px;
   background: #000000 url('images/a4.jpg') top left no-repeat;
   text-align: center;
}

.clear
{
   clear: both;
}


Eu am sters cateva linii, care am crezut eu ca sunt cauza, dar tot nu merge...
Se spune ca...."omul tot invata in viata". Dar...Totusi...Trebie sa ne oprim undeva, nu?
claUdiu
 
Mesaje: 314
Membru din: 31 Mar, 2010


Litere mari din CSS   » 26 Noi, 2011

Ca sa faci din CSS textul sa apara cu litere mari, se foloseste: text-transform: uppercase;.
Sterge acel cod, e la selectorul : #menu li a
Daca nu rrezolva, inseamna ca nu e din CSS. Vezi in codul sursa, fiindca CSS nu modifica si codul sursa, daca acolo e cu litere mari, inseamna ca asa e adaugat in pagina.
MarPlo
Administratorul site-ului
 
Mesaje: 1583
Membru din: 13 Mai, 2008


Litere mari din CSS   » 26 Noi, 2011

In codul sursa e asa cum e scris in db. Doar in pagina e cu litere mari...

Edit: Merge. Am apasat CTRL+F5 si acum arata asa cum trbuie.
Se spune ca...."omul tot invata in viata". Dar...Totusi...Trebie sa ne oprim undeva, nu?
claUdiu
 
Mesaje: 314
Membru din: 31 Mar, 2010


Litere mari din CSS   » 19 Ian, 2012

Si la mne aceiasi problema dar am rezolvat-o din css asa:
Cod: Selectaţi tot
div {
  text-transform:lowercase;
}


Ms mult
Romeo
http://www.europaforsale.eu
A fi împreună este un început.
A rămâne împreună este un progres.
A lucra împreună este un succes!
romeo
 
Mesaje: 41
Membru din: 29 Iul, 2009


  •  
Daca nu ati gasit raspunsul aici, cautati si pe net:   Litere mari din CSS .
Pub
 
Mesaje: 1
Membru din: 21 Dec, 2010



Cine este conectat

Utilizatorii ce navighează pe acest forum: Niciun utilizator înregistrat şi 1 vizitator

Cursuri / Tutoriale