Page 1 of 1 [ 4 posts ] 

LunarOfficial
Hummingbird
Hummingbird

User avatar

Joined: 25 Apr 2014
Gender: Male
Posts: 18

30 Apr 2014, 1:02 pm

index.php

Code:
<html>
    <head>
        <title>Mega Tech. | Home</title>
        <link type="text/css" rel="stylesheet" href="css/style.css"/>
        <link type="text/javascript" rel="script" href="function/post.js"/>
    </head>
    <body>
   
        <? Navigation Menu
        -----------------------------   ?>
       
        <div id="nav">
            <div id="nav_wrapper">
                <ul>
                    <li><a>Home</a></li>
                    <li><a>Tutorials</a>
                        <ul>
                            <li><a>App Development</a>
                                <ul>
                                    <li><a>C / C++</a></li>
                                    <li><a>Objective C / C#</a></li>
                                    <li><a>Ruby</a></li>
                                </ul>
                            </li>
                            <li><a>Visual Studio</a>
                                <ul>
                                    <li><a>ASP.NET</a></li>
                                    <li><a>VB Web Developing</a></li>
                                    <li><a>Software Creation</a></li>
                                </ul>
                            </li>
                            <li><a>Web Development</a>
                                <ul>
                                    <li><a>HTML / CSS</a></li>
                                    <li><a>JavaScript</a></li>
                                    <li><a>PHP</a></li>
                                </ul>
                            </li>
                        </ul>
                    </li>
                    <li><a>About</a>
                        <ul>
                            <li><a>YouTube</a></li>
                            <li><a>Contact Us</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
       
        <? Title & Registrations
        -----------------------------   ?>
       
        <div>
            <div>
                <ul>
                    <li><a>Sign Up</a></li>
                    <li><a>Login</a></li>
                    <li><a>Help</a></li>
                </ul>
            </div>
        </div>
       
        <h1>Mega Tech.</h1>
        <p>Technology is a tool of creation.</p>
       
    </body>
</html>


This is kinda frustrating me. When making a Nav menu does the nav_wrapper go in the first or second Div.


_________________
Goal :

This summer of 2014 I will learn over 14 programming languages, because I can. I know I can. No one say I can't because I can.


Kurgan
Veteran
Veteran

User avatar

Joined: 6 Apr 2012
Age: 35
Gender: Male
Posts: 4,132
Location: Scandinavia

30 Apr 2014, 3:49 pm

Impossible to tell what's right unless you post the CSS. Personally, I don't see the point of making a nested div if the outer div has no elements of it's own, but that's just me.

Edit: You might want to check out Smarty to actually make PHP useful.


_________________
“He who controls the spice controls the universe.”


LunarOfficial
Hummingbird
Hummingbird

User avatar

Joined: 25 Apr 2014
Gender: Male
Posts: 18

30 Apr 2014, 7:32 pm

Well based on which goes where I wont be able to write the CSS. And I need another div for the wrapper ( texture and position ) of the Nav Menu.


_________________
Goal :

This summer of 2014 I will learn over 14 programming languages, because I can. I know I can. No one say I can't because I can.


Kurgan
Veteran
Veteran

User avatar

Joined: 6 Apr 2012
Age: 35
Gender: Male
Posts: 4,132
Location: Scandinavia

30 Apr 2014, 8:15 pm

You may want to check out Codeacademy.com. Write specific values for each ID in the CSS document.


_________________
“He who controls the spice controls the universe.”