Skip to main content

Week 2

Notes

Footers are like links to something, such as URLs or emails. <Li> </Li> is an unordered list. 

A basic menu would have some simple CSS rules, i.e stylings. { = section so have things separated like 'divs', shows when an area starts and finishes. 

Dropdown menu- 
Have links added- items and subitems, added next to items. 

Use CSS to hide the items until you scroll over them. 

All boxes are relative and try to stay on line. 

You can animate things using CSS. 

THERE IS ONLY ONE HEAD AND BODY, if you have extras then it confuses the program. 

Codes

To start we created a new webpage, with a CSS and NAV folder inside of it. Then we have to put the code for the index.html page to work on:

<!DOCTYPE html>
<!-- Standard html5 blank template -->
<html>
<head>
<title></title>
</head>
<body>
<!-- all content goes here. -->
</body>

</html>

Navigation

Within the nav.css file (remember to link to the index.html page) within this you will create a a navigation menu for your webpage.  You use the <nav> tag to create the menu. 

<nav>
            <a href="index.html">Home</a>
            <a href="about.html">About</a>
            <!-- add your own links here… -->

<nav>

Dropdown navigation

This is the type of menu where when you hover over a tab with your mouse, some of the menu options drop down. 

<nav>
    <ul class="drop-menu">
        <li class="active"><a href="#">Home</a></li>
        <li class="active"><a href="about.html">About</a></li>
        <li>
            <a href="#">Gallery</a>
            <ul>
              <li><a href="gallery.html">Photo</a></li>
              <li><a href="video.html">Video</a></li>
            </ul>
        </li>
    </ul>
</nav>

Then you add this into the style.css sheet:

nav{
    background:#005555;
    padding:0;
    margin:0;
    height:30px;
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    position: fixed;
    top:0;
}

To highlight the current active link:

nav li a.active {
    background-color: #4CAF50;
}

The drop down options style: 

.drop-menu {
    background: #005555;
    padding: 0;
    margin: 0;
    list-style-type: none;
    height: 30px;

I found it difficult to type all of the code out, so I looked into templates and found a code that looked like it was similar to the one that we were taught. I copied the code and put it into brackets, then I modified it to match the style that I wanted to create on the webpage, I wanted it to look like the Apple website. I also found it really helpful to use the inspect element section on google chrome, since this would allow you to make changes and see them as you do them, then you copy over the changed code and put it into brackets.

Comments

Popular posts from this blog

Making the website

I found it difficult to design what each of the pages will look like, and then actually code them to look like that. This is because I’m used to using Adobe products where you can just drag and drop items into the area you want them to be, however with web design you have to code it so that the item is in a specific place. Due to finding it difficult to set up the pages I decided to go onto Photoshop and design what I would want it to look like, then save each image as a JPEG so that the size has been changed.   I began with the Mosi Brief pages as I found it difficult to resize the poster size as it was way too big. I then changed the size of the posters, so they looked best, then saved them as JPEGS at this new size and added them into the Brackets folder. I then added these JPEGS into the brackets code, and they fit how I wanted them to.      I then did the Creative Play HTML, I designed it to show that it would look like. I wan...

Screenshots of website

Beginning bio for website

Hello, this is the online portfolio for Sophie Husteden. I am a first year Digital Media student at the University of Salford. Since starting the course, we have done six different modules, and learnt lots of new skills and how to use different software’s, such as XD, Aftereffects and Brackets. Overall, my favourite modules have been the KidsCan brief and the Dichotomies brief, this is because KidsCan is the closest to what I want to do for a career in the future, and I liked the contradictions brief as it was very interesting to think about. I also really liked learning how to code as it’s something new that I hadn’t tried before. My least favourite modules have been the App brief and Creative Play, this is due to the fact that I don’t really want to make apps for any future careers, so I didn’t find it interesting, and I didn’t like Creative Play because of the Animation course.