Jump to content

Gonzolfi

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by Gonzolfi

  1. 1. Ok, poate a fost vina mea ca nu am avut rabdare cu el. 2. M-am referit la faptul ca datorita nervilor te poti razbuna pe tastatura. 3. De asta am pus 'progres' intre ghilimele. Pur si simplu mie nu mi-a placut de la inceput, gusturile nu se discuta. Oricum, ma bucur ca mi-ai pus intrebarile astea, se vede ca esti un om cu caracter.
  2. E greu pana te obisnuiesti cu el, si pana-i instalezi toate cele iti faci multi draci si s-ar putea sa ramai fara tastatura. E un "progres" aproape esuat din partea Microsoft, dar nu-i nimic, din greseli se invata. Eu unul tot la Windows 7 raman.
  3. There is more than one way to add a Cascading Style Sheet (CSS) to your HTML document. In this short tutorial I will explain the strengths and weaknesses of the four main methods. Linking to a separate CSS file This is the most common method of attaching CSS rules to an HTML document. With this method all of your style rules are contained in a single text file that is saved with the .CSS extension. This file is saved on your server and you link to it directly from each HTML file. The link is just a simple line of HTML that you put in the <head> section of your HTML document, it looks like this: <link rel="stylesheet" type="text/css" href="mystyles.css" media="screen" /> Make sure you include the correct path to your CSS file in the href. If the CSS file is in the same folder as your HTML file then no path is required (like the example above) but if it's saved in a folder, then specify it like this href="foldername/mystyles.css". The media parameter specifies when the CSS rules are to be used. "screen" indicates for use on the computer screen. If you specify "print" then the rules will only be followed when the page is printed. You can include multiple CSS files if required. There are many advantages to linking to a separate CSS file. If you need to make a style change across your whole website then you only need to make the change once in your single CSS file. If you want to completely change the look of your website, again, you only need to update this one file. Check out CSS Zen Garden for the best example of this. Perhaps the best reason to have a separate CSS file is for speed. When a person first visits your website their browser downloads the HTML of the current page plus the linked CSS file. Then when they navigate to another page their browser only needs to download the HTML of that page, the CSS file is cached so does not need to be downloaded again. This can significantly increase browsing speeds on a website. Embedding CSS into the HTML You can also embed CSS rules directly into any HTML page. To do this you need to add the following code to the <head> of your HTML document: <style media="screen" type="text/css"> Add style rules here </style> All of your CSS rules go between the style tags. As before, the media can be "screen" for your computer screen or "print" for printing. The disadvantage with this approach is the styles must be downloaded every time someone visits the page, this can cause a slightly slower browsing experience. However there are a few advantages. Because the CSS is part of the HTML document, the whole page exists as just one file. This can be useful if you are sending the page to someone via email or if it will be used as a template such as a blogger template. I use this method on my liquid-layout demos so when people view the source of the page they can see the HTML and the CSS code together. Another advantage of using this method is with dynamic content. If you are using a database to generate the page content you can also generate dynamic styles at the same time. Blogger does this - it dynamically inserts the colours for headings and other elements into the CSS rules embedded in the page. This allows users to change these colours from an admin page without actually editing the CSS in their blog templates. Adding Inline CSS to HTML tags Style rules can also be added directly to any HTML element. To do this you simply add a style parameter to the element and enter your style rules as the value. Here is an example of a heading with red text and a black background: <h2 style="color:red;background:black;">This is a red heading with a black background</h2> This is not a good method to use because it will bloat your HTML and make website maintenance a real headache. However it can be useful in some situations. One example could be if you are using a system where you don't have access to the CSS file - simply add your style rules directly to the elements instead. Importing a CSS file from within CSS Another interesting way to add CSS to a HTML page is with the import rule. This lets us attach a new CSS file from within CSS itself. Let's look at an example of how this is done then I will show a practical example of when you might use this method. To import a new CSS file from within CSS simply use the following rule: @import "newstyles.css"; Just change "newstyles" to the name of your CSS file and be sure to include the correct path to the file too. Remember the path is relative to the current CSS file that we are in, if the CSS is embedded into the HTML page then the path is relative to the HTML file. Let's imagine we have a 1000 page website and we link to a CSS file from every page on the site. Now let's imagine we want to add a second CSS file to all of those pages. We could edit all 1000 HTML files and add a second CSS link or a much better way would be to import the second CSS file from within the first file. We just saved ourselves many hours of work! Happy CSS coding... Sursa: http://matthewjamestaylor.com/blog/adding-css-to-html-with-link-embed-inline-and-import
  4. Prietenul meu cel mai bun imi spune "Gonzo", cand eram mai mic mi se spunea "Wolfy". Nu par nume originale, asa ca le-am combinat. PS: curiosul:"De curiozitate.."
  5. Iti dau seama ca asa ceva nu e posibil? Defapt tot toolul ala cu 1 input, 2 checkboxuri si 1 submit button e un cacat, fiindca nu poti sparge un cont de facebook/mail doar introducand url-ul catre profil/id-ul si apasand pe un buton. Daca vrei neaparat sa fii infectat cu un stealer/keylogger, trebuie doar sa ceri.
  6. @hackerika, nu inteleg. De ce zici ca sufar? Argumenteaza in caz ca banul primit e temporar. Multumesc persoanelor care mi-au urat bun venit, o sa incerc sa ma revansez fata de voi cu tutoriale, desi voi stiti mult mai multe ca mine.
  7. Am decriptat din prima, multumesc mult
  8. Frumos tool. Dar iti recomand si eu sa criptezi macar parola, in base-64.
  9. Multumesc. Mda, am citit si eu cateva posturi aleatorii si am vazut ca unii nu se impaca prea bine cu romana. Ei, poate am nimerit eu numai posturile ungurilor, nu ca as fi rasist, sa nu se inteleaga gresit.
  10. Salutare! Numele meu este Gonzo si am aterizat aici din intamplare. Stau in Romania, m-am mutat recent din Anglia si deja imi pare rau. Pasiunea mea legata de securitate a inceput acum mult timp, as zice vreo 4-5 ani. Dar totusi nu am foarte multe cunostinte, sau cel putin asa consider, fiindca niciodata nu poti sti totul cand vine vorba de securitate. Ma pricep la sqli,xss,lfi,rfi si alte prostioare de genu', desi nu prea ma mai preocupa lucrurile astea. Acum o ard cu scannere Imi pare bine ca am aterizat aici, si sper sa ma acomodez repede si sa am o sedere cat mai placuta.
×
×
  • Create New...