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.
- 27.5k
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 ...
- 1,389
2
votes
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>{{...
- 20.8k
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 ...
- 27.5k
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 ...
- 1,002
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&...
- 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"
- 18.5k
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/...
- 2,595
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 ...
- 3,046
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.
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 ...
- 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.
'...
- 27.5k
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.
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 ...
- 7,366
1
vote
Accepted
Apology Function CSS
Problem solved. I needed to add the style attribute (style="STYLE CODE").
- 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....
- 7,366
1
vote
Much less comfortable section re pset5
Try http://cs50.tv/2014/fall/seminars/css/. Quite helpful, watched it.
- 1,211
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
css × 27html × 15
pset7 × 6
pset8 × 4
cs50x × 3
finance × 3
final-project × 3
php × 3
final × 3
javascript × 2
portfolio × 2
style × 2
project0 × 2
google × 2
homepage × 2
pset5 × 1
c × 1
python × 1
search × 1
cs50-web-programming-with-python × 1
query × 1
cs50w × 1
table × 1
portfolio.php × 1
typeahead × 1