I am stack on Creating fancy letterheaded paper. I cannot sort out top or bottom image, if one is at right position other one disapear, could you help me please or give a clue?
i cannot sort out border on top as well, any clue or ref page will help me, too.
Thanks in advance.
/* Your CSS below here */
body {
background: url(top-image.png) no-repeat top white;
border-top:3px red;
border-bottom: 3px red;
}
body {
background: url(bottom-image.png)no-repeat bottom;}
/*background: yellow; width:auto; height:50px}**/
h1 {
background: url(logo.png);
/* filter shadow for logo */
filter:drop-shadow(2px 2px 1px black);}
Hi @chrisdavidmills! Two questions about the Fancy letterhead and one general:
fancy letterhead
I’m not finding inside the complete course how to make the correct shadow that follows the circle without using filters (the outer form). Or it’s maybe that you’ve just ment not using “webkit” but the filter instead? (I drop the code below).
The second wich is a little bit maybe to obsesive, hehe, buuuuut from obsessions… Ok…: the gradient indications are for making the gradient strictly to right (top and bottom) and that’s not shown in the example that the course gave us. Did I apllied incorrectly?
general
It’s supposed to try to help others in these subjects? For instance: I’ve seen looking for my questions the question from Filib and I think I could help. Should I and that could help you or I’m just messing things and creating caos? hehe.
Finally as a little gift! hehe I saw that you really like rock and metal since you’re a drummer so I thought in gratitude for all your help, giving you this: https://www.youtube.com/watch?v=YPR-26NhKUM hehe. Nice day man!
.
.
.
is it the name of tha image correctly in your directory?
are you copying and pasting this code or writing it? Because there are some silly but tricky easy to mistake, like the closing and openings, the spacings and so on.
And also, if you want to call for help, use the “@” before de name! And It’s really usefull to learn the basic use of this discourse page that’s the first thing I think you’ll have when you enter here.
Inspect the circle in browser developer tools, and you’ll see that I’ve done this using a combination of border-radius and box-shadow.
For the top to bottom gradient, again look at my example - I’ve used multiple background images to attach all of the images, and specify a top-to-bottom (“to bottom”) gradient that covers all parts of the gradient.
In terms of helping others - please do! I am always very busy and answering all the questions takes up a lot of time. If you get stuck, feel free to ask for my help!
Oh thanks @chrisdavidmills! And good idea for the circle shadow! Tks for that and thanks too for the music! Do you have a soundcloud or cd in spotify or something like that? Oh… I don’t think this is the place for asking that no? hehe Thanks again! Continue studying!
@chris I think (obviously could I be wrong) but it is not well shown as a part of the course and could be really usefull. The other day when I’ve told you about Git, I didn’t know that exist this course on MDN and went for a big trip till I found how to use and upload the examples. I mean… I love to search but could be usefull to have it more close to the content! TKS again!
We are on deezer and other streaming sites, and we also have a site at http://vulturiceye.com/ - weird CSS stuff written by me
the trouble with our GitHub content is that it is a bit light, and I don’t think it would fit anywhere else in the navigation menu. It is in there, but it is a bit hidden.
Eventually, I want to create a full module on GitHub/version control, as it is such an important subject to modern web devs.
Thank you @chrisdavidmills for the hint about using border-radius , I had the same doubt as @maurodibert and that gave me the answer
About github, I think it would be a good idea to make a long project with all our assessments uploaded to our github personal page, maybe aside of the main content of the course (in order to not make the course dependant of third party services). Or a bunch of them, the most challenging for example.
and the live preview. It ended up being almost the same as the css of the finished example provided by chris; the only difference is that I centered the logo so the white border around it looked equally thick.
Edit: Somehow in my first attempt my message got blocked for using github links (that’s why I put the code instead) and even worse , all my previous messages in the past assessment got marked as spam immediately after and got hidden. What a let down!! It discourages me to write comments and I’ve just started.
Hi @2alin — sorry to hear about your troubles with github links. That is really strange. You can always contact me directly if you have more troubles (cmills@mozilla.com).
Congrats on the great work - the code is looking pretty good.
So, I got a question. In the “Box Model Recap” module there’s this statement(under “Changing the box model completely”) and I quote: “The total width of a box is the sum of its width, padding-right, padding-left, border-right, and border-left properties.”
Nope, margin doesn’t count towards the total width of a box. Although it does affect the box’s position on the page relative to other boxes around it. Margin creates space outside the box.
If you look at the live example below where you found that line, it provides what the statement is saying is true.
‘’‘https://github.com/keshavgoyal2807/mdn-css1’’’
‘’’ I want to practice more css related topics and examples can you please tell me where to find the stuff for practicing css and html. please help me’’’
‘’’ Any suggestions to this assessment are appreciated’’’