incepator html si css, nu imi merge css-ul
Last Updated: Oct 25 2017 14:38, Started by
octavvv
, Oct 24 2017 20:05
·
0

#1
Posted 24 October 2017 - 20:05

M-am apucat de curand sa invat HTML si CSS dar am o problema foarte mare. Indiferent ce as scrie in fisierul "style.css" nu imi apare nimic atunci cand dau refresh pe site... imi da o pagina goala si atat... ce anume fac gresit? Ma poate ajuta cineva?
Aici este codul html, asa cum l-am scris eu: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>PAGINA PRINCIPALA</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <header> <img src="imagini/1.jpg" alt="armenian girl"> <div id='test'></div> <nav></nav> </header> <section> </section> <footer> </footer> </body> </html> Va rog ajutati-ma... nu reusesc sa imi dau seama! Octav |
#2
Posted 24 October 2017 - 20:09

style.css trebuie sa fie in acelasi director cu fisierul html care il foloseste.
|
#3
Posted 24 October 2017 - 20:15

Si altceva decat o pagina goala ce ai vrea sa contina ? Eventual poza aia, daca exista
|
#4
Posted 24 October 2017 - 20:21

style.css trebuie sa fie in acelasi director cu fisierul html care il foloseste. Acolo este
Si altceva decat o pagina goala ce ai vrea sa contina ? Eventual poza aia, daca exista Pai ar trebui sa afiseze un header de culoare albastra, poftim codul: html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; } /* HTML5 display-role reset for older browsers */ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } table { border-collapse: collapse; border-spacing: 0; } /* INCEPUT */ header { background-color: #4359a5; height: 200px; width: 100%; } header img { margin-top: 10px; } |
#5
Posted 24 October 2017 - 20:28

click dr > inspect > network > dezactiveaza cache
daca vrei sa ai pretentii de dezvoltator web tre sa stai tot timpul cu ferestra aia deschisa |
#7
Posted 24 October 2017 - 20:32

daca cumva nu-i aia buba, treci pe elements > styles > si te uiti la css sa vezi de ce nu ti se aplica culoarea sau ce vrei tu
|
#8
Posted 24 October 2017 - 20:51

pai afiseaza Da, pe site-ul ala afiseaza dar la mine nu
click dr > inspect > network > dezactiveaza cache daca vrei sa ai pretentii de dezvoltator web tre sa stai tot timpul cu ferestra aia deschisa Te referi la "Inspecteaza elementul" ? |
#10
Posted 25 October 2017 - 14:38

Poti incerca o metoda alternativa, adica sa incluzi stilizarea in pagina de html, in modul asta:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>PAGINA PRINCIPALA</title> <link rel="stylesheet" type="text/css" href="style.css"> <style> body { font-weight:bold; font-size: 12px; } // etc </style> </head> <body> <header> <img src="imagini/1.jpg" alt="armenian girl"> <div id='test'></div> <nav></nav> </header> <section> </section> <footer> </footer> </body> </html> </html> Incearca sa vezi daca nu cumva stylesheet-ul e pus intr-un folder separat (de exemplu css): <link rel="stylesheet" type="text/css" href="css/style.css"> |
|
Anunturi
Bun venit pe Forumul Softpedia!
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users