Ai ceva de facut in cod, design sau animatie si nu stii cum? Trimite-ne mail si-ti vom face tutorial ce va rezolva problema ta.
Documentatii pentru toate nivelele, de la incepatori la avansati, dar si pentru cei ce au nevoie doar de o 'bucata de cod'
Imagini de fundal pentru componente
+ Bookmark-uri
Autor: Cristea Iulian
2 din 12 voturi
Voteaza acest articol
Tutorial not available for this language. Only english version.
You want to set a background for a form component? Here it comes:
Set a class style sheet first and put the url to your image right there. Of course, there is only one line that you need but I strongly recommend to create a class for a few important reasons:
- you can change the image name or path much faster being set in only one place;
- you'll have a clean code, HTML separated from CSS;
- can be easily added new styles to your components.
Anyway, the decision is your, it's correct in both ways.
In our case we have the following simple CSS code, you only need to change the image name or/and path: