Jump to content
Killersites Forums

All Activity

This stream auto-updates

  1. Today
  2. Yesterday
  3. Last week
  4. I just began CSS Chapter 2 and already I have a couple of questions. Q1. When I open up the broken image in chapter 2, lesson 1, when I right click on the image, I see "Inspect" not "Inspect Element". Could this be related to me using a newer version of windows?? Q2. Once I am in, the visuals look different than what you have. I quickly noticed mine doesn't have the grey background and I see the network tab but not the design tab.. see below:
  5. I finished the Studioweb JS course and completed the JS certification. What are some beginner friendly projects that I should try to brush up on what I've learned and also build my skills? Thanks!
  6. Earlier
  7. As a web developer how involved in SEO should I be ? building a website for a customer is one thing, getting it rank high on google seems to be a whole other thing, with a different area of knowledge needed.
  8. That is expected. The default formatting in a p tag is to insert a line break. That, among many other details are taught in my book and my courses: https://school.studioweb.com/store/#courses Stef
  9. Hi All, I am looking for a python developer for part time work. We will be working in AWS. No experience needed. $30/hour Contact me at Abelino.Chinchilla@gmail.com or reply here. Thanks, Abel
  10. Thank you for your good advice; I'll have a look at your publication. I managed to resolve the issue; suddenly the div did allow me to use a header tag, whereas before it failed to parse a new line. This caused the header tag within the div to sort of form a block, aligned to the left, and the other content of the div to be pushed to the right, in another block. This forced me to clumsily use a span tag above my div in order to hold a book's title. Strangely enough, the p-tag continues to not work properly within my divs. It functions as if it is a <br />. Any idea as to why that is? Does it have to do with a div's display settings? Kindly, Snowfall
  11. Couple of broad suggestions: Study the box model a little more. My book Web Design Start Here, breaks that down. Or just rebuild it using CSS Grid and Flexbox ... which are much easier to work with. Stef
  12. Hello everyone, This is my first post; thank you for hosting this forum, allowing a platform for the growth of skill and understanding. I hope I may ask a question about an issue that I fail myself to resolve; I'm not entirely new to HTML/CSS, and yet should still be considered a neophyte. I hope your more seasoned eyes will be able to detect my error and help me out. I'm trying to create a simple one-page website, displaying some philosophical texts I have written. The mock-layout I will refer to in this post does not display any actual content, publications or active links, not wishing to unintendedly spam my humble sophist ramblings ;-). The setup is this: There is a span (class publications) that holds the centered-text "Publications." Below that is a span (class booktitle), holding the left-aligned title of a publication. Below that is a parent-div (class divContainer )that contains two child-divs. One child-div (class bookDescription) holds the description of a publication. The second child-div (class bookImage) holds an image of the cover of a publication. The media query @media screen and (min-width: 768px) ensures the the book titles are aligned left on a laptop/PC, with the book description and book cover aligned next to one-another. When the screen is smaller that 786px, the book titles, the book description, and the book cover are all aligned centered; with the book description and book cover being placed below one-another. All of this works fine on my laptop, and using Brave-inspect everything tested well for mobile devices. However, having used the library computer, having a rather large monitor, I saw that the span holding the book titles is aligned too much to the left relative to the divs below them. I could not understand what I was doing wrong, and must be lost in the rather vast diversity of CSS solutions and modes of formatting. Or my brain failed to understand some obvious percentages/numeral values. Edit: I just found out my issue has to do with the Windows display settings. Under "Scale and Layout" it is apparently a standard that the scale is set to 125%. On 125%, my layout works fine; but when the scale is set to 100%, I get the aforementioned issue of the book titles aligning too much to the left relative to the div container, and the two child-divs. This is the HTML-file; this the CSS. How the layout appears on a small screen: image. How the layout is intended on a big screen: image, and how it is indeed displayed on my laptop. How the layout appears on the large monitors of my library: image. CSS-class publications (not altered after/within @media screen and (min-width: 768px)): .publications{font-size: 23px; display: block; margin: auto; width: 50%; text-align: center;} CSS-class divContainer before @media screen and (min-width: 768px): .divContainer{ /*border-style: solid; border-color: black;*/ border-width: 5px; width: 90%; margin: auto; display: flex; flex-wrap: wrap; justify-content: center; } CSS-class divContainer after/within @media screen and (min-width: 768px): .divContainer{ flex-wrap: nowrap; width: 60%;} Flex-wrap: wrap has been set to nowrap; width has been changed from 90% to 60%. CSS-class bookDescription before @media screen and (min-width: 768px): .bookDescription{ margin: 5px; /*border-style: dashed; border-color: darkgrey;*/ display: block; width: 90%; margin-bottom: 30px; } CSS-class bookDescription after/within @media screen and (min-width: 768px): .bookDescription{width: 60%;} Width has been changed from 90% to 60%. CSS-class bookImage before @media screen and (min-width: 768px): .bookImage{ /*border-style: dashed; border-color: darkgrey;*/ margin: 5px; display: flex; max-width: 201px; text-align: center; justify-content: center; } CSS-class bookImage after/within @media screen and (min-width: 768px): .bookImage{ justify-content: left; float: left;} Justify-content has been changed from center to left. A float: left has been added. I would be most grateful for your help! Snowfall
  13. import datetime While True: my_now = datetime.datetime.now().strftime("%d.%b %Y %H:%M:%S") myfile = open("my_file.txt", "a") myfile.write("Added at {my_now}") myfile.close() sleep (100)
  14. #include <stdio.h> int main(){ for(int i = 0x20; i<0x30; i++){ printf("%d ", i); printf("%c\n", i); } }
  15. int a = 6; int b = 2; std::cout << "a=" << a << " b=" << b << "\n"; int temp = a; a = b; b = temp; std::cout << "a=" << a << " b=" << b << "\n";
  16. #include <stdio.h> #include <time.h> int main(){ time_t ct; // current time struct tm *lt; // local time ct = time(NULL); lt = localtime(&ct); printf("%s\n", asctime(lt)); }
  17. #include "../x11.c" int main(){ xopen(0,0,"box"); xclear_color(ORN); xcolor(BLU); xrectangle(44,44,200,100,0); xgetc(); xclose(); }
  18. I teach directories (sub folders) in the HTML5 course.
  19. Here to find d out where tje video is for subfolders? I'm doing the mentorship but I'm asking u guys!
  20. typedef struct { int x; int y; } point_t; point_t some_func(void) { point_t pt; pt.x = 0; pt.y = 0; return pt; }
  21. Yes if (someValue == someOtherValue) { someFunction(); }
  22. The floatval() function return the float value of the variable passed to it. For example: $integer = 123; $float = floatval($integer); var_dump($integer); // int(123) var_dump($float); // float(123)
  23. Here is the example: void foo(void) { printf(“foo was called\n”); } if you do this: foo(); then you’re calling do by name. If you do: void (*func_ptr)(void) = foo; func_ptr(); Then you’re calling foo through function pointer func_ptr().
  24. void f(int i) { i = i + 1; } void g(int &i) { i = i + 1; } int main() { int i = 1; f(i); // by value: i is still 1 g(i); // by reference: i is now 2 return 0; }
  25. int x[] = {1,2,3,4}; void print(int *arr, size_t n) { for (size_t i = 0; i < n; i++) { printf(“%d\n”); } } print(x, 4);
  26. #include <stdio.h> int main() { for (int a=20;a>=10;--a){ // Write C code here printf("Hello world"); } return 0; }
  27. int x[] = {1, 2, 3, 4}; You could also use a length: int x[4] = {1, 2, 3, 4};
  28. int x[] = {1, 2, 3, 4}; You could also use a length: int x[4] = {1, 2, 3, 4};
  1. Load more activity
  • Create New...