Hot answers tagged

3

shift-reload or ctrl-F5 will clear the browser's cache and (should) reload your css file.


3

Thats Really simple, in Google Chrome, simply right click on the page(if your'e using a mac, its cmd-click) without selecting any text, and you shall see a menu bar, like the one in the photo below- Here, click "View Page Source" to see it. Happy Coding!


2

The allowed CSS grammar is documented here. This is the important part: nmchar [_a-z0-9-]|{nonascii}|{escape} This is regular expression syntax, which says that the allowable characters are either underscores, alphanumeric characters, dashes, OR tokens defined as nonascii or escape elsewhere in the grammar. In theory, the escape definition doesn't ...


2

The render() function takes two arguments, the first is a string that indicates the name of the template, and the second is an array of key-value pairs. In this case "positions" is a string that represents the key and $positions is the value. Note that the value can be any kind of type, an integer, float, string, etc... or in this case is another array. ...


1

I'm not familiar with align-items (and, like a lot of CSS, it makes my head itch). And the Examples on the MDN doc page don't show any difference among 'center', 'right' and 'left'. I do know that text-align positions text within an element. Perhaps try float to "align" the element.


1

The path should be: @app.route("/entry/<title>", methods=["GET"]) @login_required def entry(title): return render_template("entry.html", title=title) This will do the work. If this work then please check the tickmark.


1

To make an I'm feeling lucky button, use this code <input value="I'm Feeling Lucky" aria-label="I'm Feeling Lucky" id="lucky" name="btnI" type="submit" data-ved="0ahUKEwiNm6S0jYLrAhXslnIEHYv2B30QnRsIDg">


1

<link rel="spreadsheet" href="style.css"> The rel should be "stylesheet" not "spreadsheet"


1

You have more <tr> than </tr>, and the rowspan elements probably should be in the first row. Maybe you can try something like {% for stock in symbol %} <tr> <td>{{ stock["symbol"] }}</td> <td>{{ stock["shares"] }}</td> <td>{{ stock["quoteprice"] }}</td> <td>{{...


1

You can enclose your postal_code with <span></span> tags and either alter the style inline with the style attribute or give that <span> element an id or class and customize this id/class internally via <style> tags or externally inside your .css file. In case you choose the last route, it may be necessary to clear your browser's ...


1

@CliffB nailed it in the comments. If your css directory is located in the parent directory of my-page, the correct way to use a relative path would be to prepend ../ before your path. This could be repeated as necessary: if the HTML source file is located at example.com/foo/bar/baz/index.html and you want to link to example.com/css/styles.css, you could ...


1

Ok I may have stumbled onto a solution for this one! I went into settings/advanced settings and pressed reset settings. Now things seem to be linking and updating correctly.


1

Uh here is my problem. I had main_display.php in my public folder, which I was messing around with. But I also had a main_display.php in my template folder, which i never changed and that was what was being displayed. I feel like a total idiot lol...


1

I fought with a similar pathing problem and it turned out that $_SERVER['DOCUMENT_ROOT'] was the cause. It is set in the apache configuration which might not be totally clear from the php doc. 'DOCUMENT_ROOT' The document root directory under which the current script is >executing, as defined in the server's configuration file. On the appliance,it ...


1

Nevermind, it was the a very stupid mistake. I wasn't using the correct address, instead of using this path http://pset8/, I was using this one file:///home/jharvard/vhosts/pset8/public/index.html.


1

If you want to target all the <tr> or <td> children inside the table use: table#leaderboard tr { /*whitespace combinator*/ /*all children*/ } If you want to target only the direct children (in case you have nested tables) use: table#leaderboard > tr { /*right arrow combinator*/ /*direct children only*/ } Edit Outside the ...


1

Problem solved. I needed to add the style attribute (style="STYLE CODE").


1

I made something simple but I think you can tinker further on your own: grad.html <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div> <table id="grad1"> <tr> <th>...


1

Try http://cs50.tv/2014/fall/seminars/css/. Quite helpful, watched it.


Only top voted, non community-wiki answers of a minimum length are eligible