Search the Community
Showing results for tags 'how to'.
-
@media screen and (max-width: 600px) { .topnav a:not(:first-child) {display: none;} .topnav a.icon { float: right; display: block; } } @media screen and (max-width: 600px) { .topnav.responsive {position: relative;} .topnav.responsive .icon { position: absolute; right: 0; top: 0; } .topnav.responsive a { float: none; display: block; text-align: left; } } @media screen and (max-width: 600px) { .topnav a:not(:first-child) {display: none;} .topnav a.icon { float: right; display: block; } .topnav.responsive {position: relative;} .topnav.responsive .icon { position: absolute; right: 0; top: 0; } .topnav.responsive a { float: none; display: block; text-align: left; } } @media screen and (max-width: 600px) { /* we dont need this */ } I dont want to a oversmart guy or,, the guy like who disrespect his teacher. Thanks.
-
Hello, this post will contains some suggestions which have no link between them. -Firstly, i think it could be great to have something which allows us to follow news from w3schools "easily, something like a page where we could see the last update in a single line. example : 02/03/2018 Update "How to" section 01/30/2018 Add php tutorial (server side) In fact, the website become "big", then it could be an asset. -Secondly, i see more and more websites which have a functionnality to switch the theme (to a night theme) by clicking on one button (in their navbar) and the change is done on the whole website . This featur could get its place in "the How to" section. -To finish, this last idea is probably out of the main content of w3schools, but maybe Java could get its place like Node.js in the server side section although Java does not necessarily have this main purpose. (of course this add should only approach the server side).
-
yoyo W3 again...i have a question, even when its a stupid one. does anyone knows how to deny acces to a website made with a speciel browser?... like if i where to only wish google chrome users to see my site (as a examble)... is that possible?... -thanks in advance...
- 8 replies
-
- browser
- deny acces
-
(and 3 more)
Tagged with:
-
I have created a function that holds/outputs links such as logout, sign in... etc.Here is it: function output_header($username=false) {?><div id="header"> <ul id="headelem"> <li><?php echo $username ?></li> <li><a href="contact.php">Επικοινωνία</a></li> <li><a href="day.php">Calendar</a></li> <li><a href="login.php">Είσοδος</a></li> <li><a href="register_form.php">Εγγραφή</a></li> <li><a href="logout.php">Αποσύνδεση</a></li> </ul></div><?php} When called, the above li items will appear in the browser. My aim though, is that I want the logout link appearing ONLY after the user has signed(that is the logical thing to do, anyway) A scheme I have though is sth like that: function output_header($username=false,$logout=false) {?><div id="header"> <ul id="headelem"> <li><?php echo $username ?></li> <li><a href="contact.php">Επικοινωνία</a></li> <li><a href="day.php">Calendar</a></li> <li><a href="login.php">Είσοδος</a></li> <li><a href="register_form.php">Εγγραφή</a></li> echo $logout </ul></div><?php} Where logout will be replaced by the li item, which will be a string as an argument of the function. What do you think about the above? Do you have to propose anything better?