Stránka: 1 z 1
| [ Príspevkov: 17 ] | |
Autor | Správa |
---|
Registrovaný: 25.07.08 Prihlásený: 06.04.10 Príspevky: 56 Témy: 21 | 21 |
bry den,
ked vkladam do stranky prvky typu img, vzdy mi za ne prida aj medzeru - resp, ked vlozim dva obrazky za sebou, pricom chcem aby boli na seba "prilepene" nikdy nie su spolu - co treba nastavit img za atributy ?
pripadne, bude lepsie riesenie cez spany/div ? - kedze sa jedna o buttony...
|
|
Registrovaný: 11.08.07 Príspevky: 4088 Témy: 34 | 34 Bydlisko: Brno |
Daj odkaz na zivu ukazku, kedze defaultne sa ziadne odsadenie obrazkov nepouziva, nemalo by to takto robit.
|
|
Registrovaný: 25.07.08 Prihlásený: 06.04.10 Príspevky: 56 Témy: 21 | 21 |
slus pzoriet toto :
Kód: http://img197.imageshack.us/img197/6858/testgqz.png
ma to byt "spojene" tak ako to tam vyzera byt, ze to chce byt
Ďuri píše: Daj odkaz na zivu ukazku, kedze defaultne sa ziadne odsadenie obrazkov nepouziva, nemalo by to takto robit.
PS : pripomeniem, ze som im nastavil : border na 0 a v css tak isto na 0 nastavil aj margin a padding
|
|
Registrovaný: 03.04.08 Prihlásený: 10.12.19 Príspevky: 4667 Témy: 37 | 37 Bydlisko: Trnava |
A nemas to nahodou robene cez li? hod se zdrojovy kod obrazok nam prd pomoze !!!
_________________ Hmmm .... Hrošíček ... [Homer] |
|
Registrovaný: 25.07.08 Prihlásený: 06.04.10 Príspevky: 56 Témy: 21 | 21 |
na stranke :
Kód: <div id="right_cont">
<img class="right_sub" src="img/but1.png" alt="" border="0" /> <img class="right_sub" src="img/but1.png" alt="" border="0" /> <img class="right_sub" src="img/but1.png" alt="" border="0"/>
</div>
styly : Kód: #right_cont{ float: right; width:305px; }
.right_sub{ margin:0; padding:0; }
|
|
Registrovaný: 03.04.08 Prihlásený: 10.12.19 Príspevky: 4667 Témy: 37 | 37 Bydlisko: Trnava |
tak na rychlo stralim co ma napada(nechce sa mi vkladat kod, ziva ukaska je lepsia! tak by si mal odpoved hned.) skus dat divu text-align:left;
a este jedna otazka robi ti to vo vsetkych prehliadacoch?
_________________ Hmmm .... Hrošíček ... [Homer] |
|
Registrovaný: 25.07.08 Prihlásený: 06.04.10 Príspevky: 56 Témy: 21 | 21 |
don jebot píše: tak na rychlo stralim co ma napada(nechce sa mi vkladat kod, ziva ukaska je lepsia! tak by si mal odpoved hned.) skus dat divu text-align:left; a este jedna otazka robi ti to vo vsetkych prehliadacoch?
ano, robi to v kazdom prehliadaci,
inac - netreba tu hladat velku logiku, alebo nejaky problem - mojim cielom je vlozit na stranku 3 obrazky, ktore budu vlozene hned vedla seba a budu teda ako keby zlepene...
|
|
Registrovaný: 11.08.07 Príspevky: 4088 Témy: 34 | 34 Bydlisko: Brno |
Zapis vsetky 3 znacky <img> do jedneho riadku, nerob medzi nimi medzery ani prazdne riadky.
|
|
Registrovaný: 25.07.08 Prihlásený: 06.04.10 Príspevky: 56 Témy: 21 | 21 |
Ďuri píše: Zapis vsetky 3 znacky <img> do jedneho riadku, nerob medzi nimi medzery ani prazdne riadky.
do kelu aj s enterom...dakujem
|
|
Registrovaný: 26.11.06 Prihlásený: 09.10.24 Príspevky: 4118 Témy: 319 | 319 Bydlisko: HE/BA |
Alebo im môžeš nastaviť záporný margin, ak chceš mať poriadok v kóde.
|
|
Registrovaný: 28.06.10 Prihlásený: 29.06.10 Príspevky: 4 Témy: 0 | 0 |
ahoj, ozyvam sa, pretoze mam podobny problem a vyriesenie dat divy do jedneho riadka mi nepomhlo..
prikladam ukazku:
Kód: http://s50.photobucket.com/albums/f320/drusila666/?action=view¤t=layout2.jpg CSS: Kód: #top { background-image: url ("layout/brown_up.jpg"); margin: 0px auto;} #banner { background-image: url ("layout/banner.jpg"); margin: 0px auto; display: table;}
#sides { background-image: url ("layout/side.jpg") margin: 0px auto;}
HTML: Kód: <div id="sides"><img src="layout/side.jpg" alt="side"><div id="top"><img src= "layout/brown_up.jpg" alt="brown"></div> <div id="banner"><img src="layout/banner.jpg" alt="banner" id="banner"></div> <div id="menu"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="900" height="61"> </embed> </object> </div><div id="sides"><img src="layout/side.jpg" alt="side">
a ide o tie dve ciary, ktore su po bokoch celeho webu z kazdej strany.. neviem ich tak nakodovat..[/img]
|
|
Registrovaný: 11.08.07 Príspevky: 4088 Témy: 34 | 34 Bydlisko: Brno |
"Ziva ukazka" znamena odkaz na cely HTML dokument, aby sme si mohli pozriet konkretny problem. Z obrazku a par riadkov kodu nic nevycitame.
Mimochodom preco nastavujes #banneru display:table? A preco mas na stranke 2 prvky s id=banner a 2 prvky s id=sides? Ak chces pre niekolko prvkov nastavit rovnake styly, pouzi class.
|
|
Registrovaný: 28.06.10 Prihlásený: 29.06.10 Príspevky: 4 Témy: 0 | 0 |
HTML:
Kód: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=windows-1250"> <meta name="generator" content="PSPad editor, www.pspad.com"> <meta name=description content="car internet encyclopedia"> <meta name=keywords content="car encyclopedia car clubs members fans magazines gallery institutions museums meetings links car dealers manuals books car music movies"> <meta name="robots" content="all"> <meta name="resource-type" content="document"> <meta name="copyright" content="(c) 2010 Drew Roberts"> <meta name="author" content="Drew Roberts"> <title>RoadLife</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div id="sides"><img src="layout/side.jpg" alt="side"><div id="top"><img src= "layout/brown_up.jpg" alt="brown"></div> <div id="banner"><img src="layout/banner.jpg" alt="banner" id="banner"></div> <div id="menu"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="900" height="61"> <param name="movie" value="web-menu.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#232607" /> <param name="wmode" value="opaque" /> <param name="FlashVars" value="xmlvar=%3Cmenu%3E%3Cproperties%3E%3Cmenu%5Fbuttons%5Fwidth%20width%3D%22125%22%20%2F%3E%3Cmenu%5Fshadow%20state%3D%221%22%20%2F%3E%3Cmain%5Fmenu%5Fcorners%20state%3D%221%22%20%2F%3E%3Cmenu%5Fbackground%20bg%5Ffile%5Fpath%3D%22%22%20%2F%3E%3Cmenu%5Frollover%5Fsound%20mp3source%3D%22%22%20mp3volume%3D%2250%22%20%2F%3E%3C%2Fproperties%3E%3Cstyle%3E%3Cmain%5Fbutton%5Fbackground%20Color%3D%222F2C24%22%20%2F%3E%3Cmain%5Fbutton%5Frollover%5Fbar%5Flight%20Color%3D%22EFEADE%22%20%2F%3E%3Cmain%5Fbutton%5Ftext%20Color%3D%22FFFFFF%22%20rolloverColor%3D%222F2E29%22%20%2F%3E%3Cmain%5Fbutton%5Ftext%5Ffont%20name%3D%22Century%20Gothic%22%20%2F%3E%3Cmain%5Fbutton%5Ftext%5Fbold%20state%3D%221%22%20%2F%3E%3Cmain%5Fbutton%5Ftext%5Fsize%20size%3D%2212%22%20%2F%3E%3Cmain%5Fbutton%5Ftext%5Falign%20align%3D%22center%22%20%2F%3E%3Csub%5Fbutton%5Fbackground%20Color%3D%22EFEADE%22%20%2F%3E%3Csub%5Fbutton%5Frollover%5Fbar%5Flight%20Color%3D%22763D0A%22%20%2F%3E%3Csub%5Fbutton%5Ftext%20Color%3D%222F2E29%22%20rolloverColor%3D%22FFFFFF%22%20%2F%3E%3Csub%5Fbutton%5Ftext%5Ffont%20name%3D%22Century%20Gothic%22%20%2F%3E%3Csub%5Fbutton%5Ftext%5Fbold%20state%3D%220%22%20%2F%3E%3Csub%5Fbutton%5Ftext%5Fsize%20size%3D%2212%22%20%2F%3E%3Csub%5Fbutton%5Ftext%5Falign%20align%3D%22Center%22%20%2F%3E%3C%2Fstyle%3E%3Cbuttons%3E%3Cbutton%20text%3D%22Home%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22%22%20%2F%3E%3Cbutton%20text%3D%22Encyclopedia%22%20url%3D%22your%2Ehtml%22%20target%3D%22%5Fblank%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Fans%20of%20cars%22%20url%3D%22your%2Ehtml%22%20target%3D%22%5Fblank%22%20action%3D%22getUrl%22%3E%3Cbutton%20text%3D%22Meetings%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Car%20clubs%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3C%2Fbutton%3E%3Cbutton%20text%3D%22Institutions%22%20url%3D%22your%2Ehtml%22%20target%3D%22%5Fblank%22%20action%3D%22getUrl%22%3E%3Cbutton%20text%3D%22Museums%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Exhibitions%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3C%2Fbutton%3E%3Cbutton%20text%3D%22Literature%22%20url%3D%22your%2Ehtml%22%20target%3D%22%5Fblank%22%20action%3D%22getUrl%22%3E%3Cbutton%20text%3D%22Manuals%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Magazines%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Books%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3C%2Fbutton%3E%3Cbutton%20text%3D%22Media%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%3E%3Cbutton%20text%3D%22Movies%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Music%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Photographers%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3C%2Fbutton%3E%3Cbutton%20text%3D%22Links%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%3E%3Cbutton%20text%3D%22Dealers%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Bazaar%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Service%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Clubs%20and%20members%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Brands%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Fan%20sites%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3C%2Fbutton%3E%3C%2Fbuttons%3E%3C%2Fmenu%3E" /> <embed src="web-menu.swf" bgcolor="#232607" FlashVars="xmlvar=%3Cmenu%3E%3Cproperties%3E%3Cmenu%5Fbuttons%5Fwidth%20width%3D%22125%22%20%2F%3E%3Cmenu%5Fshadow%20state%3D%221%22%20%2F%3E%3Cmain%5Fmenu%5Fcorners%20state%3D%221%22%20%2F%3E%3Cmenu%5Fbackground%20bg%5Ffile%5Fpath%3D%22%22%20%2F%3E%3Cmenu%5Frollover%5Fsound%20mp3source%3D%22%22%20mp3volume%3D%2250%22%20%2F%3E%3C%2Fproperties%3E%3Cstyle%3E%3Cmain%5Fbutton%5Fbackground%20Color%3D%222F2C24%22%20%2F%3E%3Cmain%5Fbutton%5Frollover%5Fbar%5Flight%20Color%3D%22EFEADE%22%20%2F%3E%3Cmain%5Fbutton%5Ftext%20Color%3D%22FFFFFF%22%20rolloverColor%3D%222F2E29%22%20%2F%3E%3Cmain%5Fbutton%5Ftext%5Ffont%20name%3D%22Century%20Gothic%22%20%2F%3E%3Cmain%5Fbutton%5Ftext%5Fbold%20state%3D%221%22%20%2F%3E%3Cmain%5Fbutton%5Ftext%5Fsize%20size%3D%2212%22%20%2F%3E%3Cmain%5Fbutton%5Ftext%5Falign%20align%3D%22center%22%20%2F%3E%3Csub%5Fbutton%5Fbackground%20Color%3D%22EFEADE%22%20%2F%3E%3Csub%5Fbutton%5Frollover%5Fbar%5Flight%20Color%3D%22763D0A%22%20%2F%3E%3Csub%5Fbutton%5Ftext%20Color%3D%222F2E29%22%20rolloverColor%3D%22FFFFFF%22%20%2F%3E%3Csub%5Fbutton%5Ftext%5Ffont%20name%3D%22Century%20Gothic%22%20%2F%3E%3Csub%5Fbutton%5Ftext%5Fbold%20state%3D%220%22%20%2F%3E%3Csub%5Fbutton%5Ftext%5Fsize%20size%3D%2212%22%20%2F%3E%3Csub%5Fbutton%5Ftext%5Falign%20align%3D%22Center%22%20%2F%3E%3C%2Fstyle%3E%3Cbuttons%3E%3Cbutton%20text%3D%22Home%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22%22%20%2F%3E%3Cbutton%20text%3D%22Encyclopedia%22%20url%3D%22your%2Ehtml%22%20target%3D%22%5Fblank%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Fans%20of%20cars%22%20url%3D%22your%2Ehtml%22%20target%3D%22%5Fblank%22%20action%3D%22getUrl%22%3E%3Cbutton%20text%3D%22Meetings%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Car%20clubs%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3C%2Fbutton%3E%3Cbutton%20text%3D%22Institutions%22%20url%3D%22your%2Ehtml%22%20target%3D%22%5Fblank%22%20action%3D%22getUrl%22%3E%3Cbutton%20text%3D%22Museums%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Exhibitions%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3C%2Fbutton%3E%3Cbutton%20text%3D%22Literature%22%20url%3D%22your%2Ehtml%22%20target%3D%22%5Fblank%22%20action%3D%22getUrl%22%3E%3Cbutton%20text%3D%22Manuals%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Magazines%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Books%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3C%2Fbutton%3E%3Cbutton%20text%3D%22Media%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%3E%3Cbutton%20text%3D%22Movies%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Music%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Photographers%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3C%2Fbutton%3E%3Cbutton%20text%3D%22Links%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%3E%3Cbutton%20text%3D%22Dealers%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Bazaar%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Service%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Clubs%20and%20members%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Brands%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3Cbutton%20text%3D%22Fan%20sites%22%20url%3D%22%22%20target%3D%22%22%20action%3D%22getUrl%22%20%2F%3E%3C%2Fbutton%3E%3C%2Fbuttons%3E%3C%2Fmenu%3E" wmode="opaque" width="900" height="61" quality="high" pluginspage="http://macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed> </object> </div><div id="sides"><img src="layout/side.jpg" alt="side"> </body>
</html> CSS: Kód: body { background-color:rgb(35,38,7); text-align:center; margin: 0px auto; }
#top { background-image: url ("layout/brown_up.jpg"); margin: 0px auto; } #banner { background-image: url ("layout/banner.jpg"); margin: 0px auto; display: table;}
#sides { background-image: url ("layout/side.jpg") margin: 0px auto;}
display: table preto, aby som to mala v strede stranky, nie? ja som este len zaciatocnik, takze som mam este v niektorych funkciach trochu chaos.. a s tymi id neviem preco to tak mam..
|
|
Registrovaný: 27.01.10 Prihlásený: 16.12.15 Príspevky: 86 Témy: 10 | 10 |
na stred stranky sa pouziva margin: auto; ak sa nemylim a s tymi id to je hlupost lebo id je jedinecne a moze byt kazde pouzite iba raz, ked chces mat viac rovnakych pouzivaj class tak ako pise Ďuri
| Hej, pozor na slovnik. Ďuri
co takeho som povedal?
| Pouzivat vyrazy "chu.ovina" a podobne sa fakt nehodi do normalnej diskusie, tak som ti to upravil. Ďuri
|
|
Registrovaný: 28.06.10 Prihlásený: 29.06.10 Príspevky: 4 Témy: 0 | 0 |
aha.. ok, dakujem prestudujem a opravim si to..
vedeli by ste mi poradit aj v probleme ohladom ulozenia tych dvoch pasov z oboch stran?
|
|
Registrovaný: 27.01.10 Prihlásený: 16.12.15 Príspevky: 86 Témy: 10 | 10 |
aha, ja som to videl uz editnute an hlupost, tak pardon
drusila: co tym myslis?
|
|
Registrovaný: 28.06.10 Prihlásený: 29.06.10 Príspevky: 4 Témy: 0 | 0 |
no, pozri si ten obrazok.. a po bokoch toho banneru a menu su take farebne ciary spravene a neviem ako ich mam napoziciovat, aby bola jedna z lavej strany toho banneru a druha z pravej.. mam to tam pod #sides..
|
|
Stránka: 1 z 1
| [ Príspevkov: 17 ] | |
Podobné témy | Témy | Odpovede | Zobrazenia | Posledný príspevok |
---|
| v Smartfóny a tablety | 6 | 536 | 26.09.2011 19:17 haffen | | v Grafické programy | 9 | 1004 | 26.01.2009 17:12 janox | | v Grafické programy | 4 | 909 | 16.06.2008 23:56 walter | | v PHP, ASP | 5 | 599 | 18.09.2011 17:31 1daemon1 | | v Grafické programy | 6 | 1869 | 10.09.2008 13:38 Gyrxiur | | v Sieťové a internetové programy | 5 | 702 | 02.06.2008 21:13 Lub0$ | | v PHP, ASP | 1 | 982 | 27.01.2007 19:05 suchy | | v PHP, ASP | 1 | 867 | 19.10.2009 13:11 don jebot | | v PHP, ASP | 2 | 653 | 01.12.2007 17:02 Flety | | v PHP, ASP | 8 | 1310 | 04.10.2010 16:02 emer | | v PHP, ASP | 5 | 1069 | 25.09.2006 19:04 itsgoingd | | v PHP, ASP | 8 | 652 | 10.01.2009 21:08 shaggy | | v PHP, ASP | 16 | 1117 | 24.08.2008 8:29 skreko | | v Grafické programy | 2 | 1110 | 03.08.2006 18:42 javo | | v Assembler, C, C++, Pascal, Java | 7 | 479 | 01.01.2014 17:03 erik518 | | v Grafické programy | 1 | 434 | 02.07.2010 16:27 gM |
|