Ocena wątku:
- 0 głosów - średnia: 0
- 1
- 2
- 3
- 4
- 5
problem z rozmiarem czcionki
|
Liczba postów: 56
Liczba wątków: 17
Dołączył: 19-04-2010
Reputacja:
0
witam
moj problem polega na tym ze ile bym nie wpisal font-size: (liczba) px;
to czcionka wziac jest taka sama , o co chodzi?
Liczba postów: 296
Liczba wątków: 1
Dołączył: 11-12-2009
Reputacja:
9
Liczba postów: 56
Liczba wątków: 17
Dołączył: 19-04-2010
Reputacja:
0
<style type="text/css">
body {
background-color: #FFFFFF;
background-position: 0% 0%
margin-right: 100px;
margin-left: 100px;
}
a:link {
color: #00008B;
text-decoration: none;
font-weight: bold;}
/* unvisited link */
a:visited {
color: #00008B;
text-decoration: none;
font-weight: bold;}
/* visited link */
a:hover {
color: #6E2B32;
text-decoration: none;
font-weight: bold;}
/* mouse over link */
a:active {
color: #006633;
text-decoration: none;
font-weight: bold;}
/* selected link */
h1 {font-family: "Courier New", serif, font-size: 20px; }
h1 {
color: #228D22;
text-align: justify;
position:relative;
top:10px;
padding-left:200px;
}
h2 {font-family: "Times New Roman", serif, font-size: 8px; }
h2 {
color: #228D22;
text-align: center;
position:relative;
top: 85px;
padding-left:10px;
padding-right:85px;}
h3 {font-family: "Courier New", serif, font-size: 25px; }
h3 {
color: #228D22;
text-align: center;
position:relative;
top: 400px;
left: 375px;}
h4 {font-family: "Courier New", serif, font-size: 10em; }
h4 {
color: #228D22;
text-align: center;
position:relative;
top: 510px;
left: 150px;}
#container {
font-size: 1em;
margin-left: 25px;
margin-right: 25px;}
#header {
height: 200px;
width: 800px;
background-image: url("Logo.jpg");
}
#left {
height: 40px;
width: 800px;
background-image: url("baner.jpg");
position: absolute;
top: 208px;
left: 125px;}
#banner {
height: 30px;
width: 800px;
backround-image:url("banner2.jpg");
position: relative;
top: 450px;
left:125px;}
Liczba postów: 682
Liczba wątków: 9
Dołączył: 03-03-2009
Reputacja:
18
Właściwości oddziela się średnikiem a nie przecinkiem, czyli nie "serif, font-size: 20px;" tylko "serif; font-size: 20px;"
Liczba postów: 56
Liczba wątków: 17
Dołączył: 19-04-2010
Reputacja:
0
26-04-2010, 18:24
(Ten post był ostatnio modyfikowany: 26-04-2010, 18:25 przez pk96.)
Mam jeszcze taki problem ze tekst h2 nie moge przesunąć w lewo .padding-left juz wymazalem
Liczba postów: 2,587
Liczba wątków: 2
Dołączył: 03-04-2010
Reputacja:
58
Liczba postów: 56
Liczba wątków: 17
Dołączył: 19-04-2010
Reputacja:
0
a jeszcze cos zmieniam kolor na #000000 ; i w h1 kolor wciaz jest zielony ? dlaczego
Liczba postów: 2,587
Liczba wątków: 2
Dołączył: 03-04-2010
Reputacja:
58
Pokaż najlepiej URL... Poza tym, do codu stosuje się BBcode (a propos pierwszego posta).
Liczba postów: 56
Liczba wątków: 17
Dołączył: 19-04-2010
Reputacja:
0
ale ja jeszcze strony nie wrzucilem na server
h1 {font-family: "Century"; serif; font-size: 30px; }
h1 {
color: #000000;
text-align: justify;
position:absolute;
padding-top:10px;
padding-left:175px;
padding-bottom: 25px;
}
do tego mam jeszcze problem ze skryptem Galeri zdjec nie chce mi sie on pokazac zrobilem plik galeria.css
function Galeria(id, zdjecia, css, ochrona, zaladuj)
{
this.kolumny = 2;
this.naStronie = 10;
this.id = id;
this.zdjecia = zdjecia;
this.ochrona = typeof ochrona != 'undefined' ? ochrona : false;
this.css = css;
if (typeof zaladuj != 'undefined' && zaladuj)
{
for (var i = 0; i < this.zdjecia.length; i++)
{
new Image().src = this.zdjecia[i][0];
}
}
this.wyswietl = function(strona)
{
if (typeof strona == 'undefined') strona = 1;
var html = '';
for (var i = start_ = (strona - 1) * this.naStronie, stop_ = Math.min(start_ + this.naStronie, this.zdjecia.length); i < stop_; i++)
{
if (i > start_ && !(i % this.kolumny)) html += '</tr><tr>';
html +=
'<td>' +
'<a href="' + (this.ochrona ? 'javascript:void(0)' : this.zdjecia[i][1]) + '" onclick="return !' + this.id + '.pokaz(' + i + ')" onkeypress="return !' + this.id + '.pokaz(' + i + ')"><img src="' + this.zdjecia[i][0] + '" alt=""' + (this.ochrona ? ' onmousedown="return false" oncontextmenu="return false" onselectstart="return false" onselect="return false" oncopy="return false" ondragstart="return false" ondrag="return false" galleryimg="no"' : '') + ' /></a>' +
(typeof this.zdjecia[i][2] != 'undefined' ? '<div>' + this.zdjecia[i][2] + '</div>' : '') +
'</td>';
}
if (html) html = '<table><tr>' + html + '</tr></table>';
if (this.zdjecia.length > this.naStronie)
{
html += '<div class="stronicowanie">';
if (strona > 1) html += '<a href="javascript:void(0)" onclick="' + this.id + '.wyswietl(' + (strona - 1) + '); return false" onkeypress="' + this.id + '.wyswietl(' + (strona - 1) + '); return false">«</a>';
for (var i = 1, stop_ = Math.ceil(this.zdjecia.length / this.naStronie); i <= stop_; i++)
{
html += ' ' + (i == strona ? i : '<a href="javascript:void(0)" onclick="' + this.id + '.wyswietl(' + i + '); return false" onkeypress="' + this.id + '.wyswietl(' + i + '); return false">' + i + '</a>');
}
if (strona < stop_) html += ' <a href="javascript:void(0)" onclick="' + this.id + '.wyswietl(' + (strona + 1) + '); return false" onkeypress="' + this.id + '.wyswietl(' + (strona + 1) + '); return false">»</a>';
html += '</div>';
}
document.getElementById(this.id).innerHTML = '<div class="galeria">' + html + '</div>';
}
this._pokaz = function(i)
{
var numer = (i + 1) + '/' + this.zdjecia.length;
if (this.zdjecia.length < 2) var stronicowanie = '';
else
{
var stronicowanie =
'<div class="stronicowanie" style="white-space: nowrap">' +
(i > 0 ? '<a href="javascript:void(0)" onclick="setTimeout(\'document.write(window.opener.' + this.id + '._pokaz(' + (i - 1) + ')); document.close(); document.close()\', 1); return false" onkeypress="setTimeout(\'document.write(window.opener.' + this.id + '._pokaz(' + (i - 1) + ')); document.close(); document.close()\', 1); return false">« Wstecz</a> ' : '') +
numer +
(i < this.zdjecia.length - 1 ? ' <a href="javascript:void(0)" onclick="setTimeout(\'document.write(window.opener.' + this.id + '._pokaz(' + (i + 1) + ')); document.close()\', 1); return false" onkeypress="setTimeout(\'document.write(window.opener.' + this.id + '._pokaz(' + (i + 1) + ')); document.close()\', 1); return false">Dalej »</a>' : '') +
'</div>';
}
var html =
'<html>' +
'<head>' +
'<title>' + (typeof this.zdjecia[i][2] != 'undefined' ? this.zdjecia[i][2].replace(/<[^>]+>/g, '') + (numer ? ' (' + numer + ')' : '') : numer) + '</title>' +
(typeof this.css != 'undefined' && this.css ? '<link rel="Stylesheet" type="text/css" href="' + this.css + '" />' : '') +
'<'+'script type="text/javascript">' +
'function dopasuj() { window.resizeTo(Math.min(screen.availWidth, Math.max(document.getElementById(\'img\').width + 50, document.getElementById(\'body\').offsetWidth)), Math.min(screen.availHeight, document.getElementById(\'body\').offsetHeight + 80)); }' +
(this.ochrona ? 'window.onblur = function() { if (document.getElementById(\'body\')) document.getElementById(\'body\').style.visibility = \'hidden\'; try { clipboardData.clearData(); } catch (e) {} }; window.onfocus = function () { if (document.getElementById(\'body\')) document.getElementById(\'body\').style.visibility = \'visible\'; };' : '') +
'<'+'/script>' +
'</head>' +
'<body style="margin: 0; padding: 0" onload="dopasuj(); dopasuj()"' + (this.ochrona ? ' oncontextmenu="return false" onbeforeprint="document.getElementsByTagName(\'body\')[0].style.visibility = \'hidden\'; window.alert(\'Wydruk jest niedostępny!\')" onafterprint="document.getElementsByTagName(\'body\')[0].style.visibility = \'visible\'"' : '') + '>' +
'<div id="body">' +
'<div id="zdjecie">' +
(typeof this.zdjecia[i][2] != 'undefined' || numer ? '<h1>' + (typeof this.zdjecia[i][2] != 'undefined' ? this.zdjecia[i][2] : numer) + '</h1>' : '') +
'<div style="text-align: center"><img id="img" src="' + this.zdjecia[i][1] + '" alt=""' + (this.ochrona ? ' onmousedown="return false" oncontextmenu="return false" onselectstart="return false" onselect="return false" oncopy="return false" ondragstart="return false" ondrag="return false" galleryimg="no"' : '') + ' /></div>' +
(typeof this.zdjecia[i][3] != 'undefined' ? '<div>' + this.zdjecia[i][3] + '</div>' : '') +
stronicowanie +
'</div>' +
'</div>' +
'</body>' +
'</html>';
return html;
}
this.pokaz = function(i)
{
try { Galeria.okno.close() } catch (e) {}
Galeria.okno = window.open('', this.id, 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=400,height=400');
if (!Galeria.okno) return false;
Galeria.okno.document.close();
Galeria.okno.document.write(this._pokaz(i));
Galeria.okno.document.close();
Galeria.okno.focus();
return true;
}
document.write('<div id="' + this.id + '"></div>');
this.wyswietl();
}
Galeria.okno = null;
oraz dodalem w head
<script type="text/javascript" src="galeria.js"></script>
i kod w mijeszu w ktorym chce zeby sie pokazywalo
<script type="text/javascript">
// <![CDATA[
var galeria = new Galeria('galeria.', new Array(
new Array('kijmini.jpg', 'kij.jpg', 'Kij drewniany',),
new Array('kijemini.jpg', 'kije.jpg', 'Kije z obsadkami', ),
new Array('miniatura', 'zdjęcie', 'Tytuł', )
));
// ]]>
</script>
ale sie nie pokazuje dlaczego ?
Liczba postów: 2,587
Liczba wątków: 2
Dołączył: 03-04-2010
Reputacja:
58
1. URL. Wiesz co to? Link...
2. Stosuj BBCode bo się tego czytać nie da!
3. Nie masz na serwerze? No to spakuj paczkę, każdy może wtedy zobaczyć na localu, przejechać firebugiem, etc.
|
Podobne wątki… |
Wątek: |
Autor |
Odpowiedzi: |
Wyświetleń: |
Ostatni post |
|
Kolor czcionki się nie zmienia. |
robiwielki |
4 |
4,624 |
30-10-2014, 15:22
Ostatni post: robiwielki
|
|
czcionki |
Arnimarl |
3 |
4,215 |
04-06-2014, 19:25
Ostatni post: atp
|
|
Darmowe czcionki-FontSquirrel |
dahel |
2 |
4,204 |
26-02-2012, 04:07
Ostatni post: Pedro84
|
|
font-face - wykrywanie czcionki i kontrola rozmiaru |
Michał.S |
2 |
3,109 |
20-01-2012, 23:08
Ostatni post: Michał.S
|
|
Wielkość czcionki. |
leehooker |
5 |
4,336 |
05-11-2011, 16:24
Ostatni post: Kartofelek
|
Użytkownicy przeglądający ten wątek: 1 gości
|
|
Sponsorzy i przyjaciele
|
|
|