Hot answers tagged

3 votes
Accepted

CSS Having No Affect in PSET7

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

How to use inspect Element to view HTML and CSS of a website?

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- ...
user avatar
  • 1,170
2 votes
Accepted

Can you have a CSS class name with a space?

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 ...
user avatar
  • 2,146
2 votes
Accepted

Pset7 Table HTML and CSS formatting

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 ...
user avatar
  • 1,359
1 vote

Header links won't align to the right (P2)

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 ...
user avatar
1 vote
Accepted

CS50 Final Project / Personalized HTML path

The path should be: @app.route("/entry/<title>", methods=["GET"]) @login_required def entry(title): return render_template("entry.html", title=title) This will ...
user avatar
  • 957
1 vote
Accepted

How To Make A Google "I'm Feeling Lucky" Button For CS50 Project 0

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&...
user avatar
  • 27
1 vote

Why my css file is not being implemented in my html file?

<link rel="spreadsheet" href="style.css"> The rel should be "stylesheet" not "spreadsheet"
user avatar
  • 18.3k
1 vote
Accepted

Why "rowspan" is not working in my code

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>{{...
user avatar
  • 20.7k
1 vote
Accepted

pset8 postal code not greying out like the staff's

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/...
user avatar
1 vote
Accepted

Relative linking

@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 ...
user avatar
  • 3,035
1 vote

style.css not updating changes

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.
user avatar
1 vote
Accepted

Webdesign (final project question)

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 ...
user avatar
  • 11
1 vote

Webdesign (final project question)

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. '...
user avatar
1 vote

pset8 : index.html does not find files in public/css , /js ... etc

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.
user avatar
1 vote
Accepted

CSS Table, Table Row Styling

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 ...
user avatar
  • 7,326
1 vote
Accepted

Apology Function CSS

Problem solved. I needed to add the style attribute (style="STYLE CODE").
user avatar
  • 1,211
1 vote
Accepted

CSS Table Gradient Not Working

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....
user avatar
  • 7,326
1 vote

Much less comfortable section re pset5

Try http://cs50.tv/2014/fall/seminars/css/. Quite helpful, watched it.
user avatar
  • 1,211

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