|
|
#1 |
|
Bronze Member
![]() Join Date: Jan 2012
Location: Chicago
Posts: 63
|
Hey, I just finished this, have to add a contact form, more portfolio stuff, and maybe a drop down nav with more links for that portfolio stuff, but im not sure if:
Does this work in IE?? the #navmenu ul li:hover ul { visibility:visible; } So, anyway, I'm just about done with this, please let me know what you think. I think I need a better homepage image... home.comcast.net/~mjrzasa |
|
|
|
|
|
#2 |
|
Diamond Member
![]() Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,137
|
HTML Code:
<div class="header1"> </div> <div class="header2"> <div class="hr1" style="margin-top:0px;"> </div> <!-- 1 pixel divs using line height and spacing so there is no extra white space, works for Cross Browser --> <div class="hr1" style="margin-top:3px;"> </div> <div class="hr1" style="margin-top:3px;"> </div> <div class="logo"> <a href="home.html"><img src="http://www.webdesignforum.com/images/logo.png" alt="logo" style="margin-left:50px;border:none;"></img></a> <!-- no link border for IE --> </div> <div class="hr2" style="margin-top:19px;"> </div> <div class="hr2" style="margin-top:1px;"> </div> <div class="hr2" style="margin-top:1px;"> </div> </div> <div class="header3"> <div class="nav"> <ul class="naver"> <b> <li class="naver"><a href="home.html">Home</a></li> <li class="naver"><a href="about.html">About Me</a></li> <li class="naver"><a href="work.html">Past Work</a></li> <li class="naver"><a href="contact.html">Contact Me</a></li> </b> </ul> </div> </div> all of that could have easily been replicated in a 1px slither image repeated on the x-axis in a header background and your entire header could (should) look like this. HTML Code:
<header> <img src="logo.png" alt="logo" id="logo" /> <ul> <li><a href="index.html">Home</a></li> <li><a href="about.html">About Me</a></li> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="contact.html">Contact</a></li> </ul> </header> HTML Code:
<div style="width:2px;height:100px;background-color:#6D6D6D;float:left;;"></div> <!-- small divs to create overlap look --> <div style="width:1px;height:100px;background-color:#333333;float:left;"></div> <div style="width:2px;height:100px;background-color:#484848;float:left;"></div> and whilst on the topic. HTML Code:
<b style="margin:0 0 0 125;">
and your css needs to be external. essentially it works and it looks OK, but you've overcomplicated it, and the markup isnt very semantic. oh and dont do dropdowns. please. they are no good for accessibility.
__________________
if (headhurts == "possibly") { alert ("keep going!"); } else if (headhurts == "yes") { alert ("go to sleep"); } else if (headhurts == "damn !@#$ mofo scripts...") { alert ("give up and have a beer!"); } else { alert ("watch TV"); } |
|
|
|
|
|
#3 |
|
Silver Member
![]() Join Date: Sep 2011
Posts: 109
|
Hmm, there's a lot of 'Me, me, Me' - it should be more about your work not all about you - try and change the emphasis to 'My Work' and less 'me I'm Rzasa' and focus on portfolio and services and step back from it yourself (not completely!) - it creates a more professional feel.
__________________
Web Design Liverpool |
|
|
|
|
|
#4 |
|
Bronze Member
![]() Join Date: Jan 2012
Location: Chicago
Posts: 63
|
ok, thank you for the comments!
I believe the first reply was saying that inline CSS is not what I should do, is that correct? Well, I try not to, but I always need to move margins and such, should i use css like: p2.main {margin:0 0 0 250} instead of inline stuff like: <p style="margin:0 0 0 250"> TEXT </p> ? Also, what do you mean by: "all of that could have easily been replicated in a 1px slither image repeated on the x-axis in a header background and your entire header could (should) look like this. " Again, thanks for the comments. |
|
|
|
|
|
#5 |
|
New Member
![]() Join Date: Feb 2012
Posts: 20
|
What hosting service do you use?
|
|
|
|
|
|
#6 |
|
Bronze Member
![]() Join Date: Jan 2012
Location: Chicago
Posts: 63
|
I am using my cable company's services, comcast.
|
|
|
|
|
|
#7 |
|
Diamond Member
![]() Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,137
|
all of that could have easily been replicated in a 1px slither image repeated on the x-axis in a header background and your entire header could (should) look like this.
means exactly that Code:
header {
background-image:url(../images/headerbackground.jpg);
background-repeat:repeat-x;
width:100%;
height:xxx;
}
margin:0 0 0 250; is assumed and guessed to be px, but always best to define that margin:0 0 0 250px; and yes that should be in the external css, not in the html.
__________________
if (headhurts == "possibly") { alert ("keep going!"); } else if (headhurts == "yes") { alert ("go to sleep"); } else if (headhurts == "damn !@#$ mofo scripts...") { alert ("give up and have a beer!"); } else { alert ("watch TV"); } |
|
|
|
|
|
#8 |
|
Bronze Member
![]() Join Date: Jan 2012
Location: Chicago
Posts: 63
|
omg, you mean a 1 px image with the height of the header (and design of the header), and with the hr's so that it goes all the way across with 100%... wow i never thought of that. I guess I was just so concerned about trying not to use any images..
Is there a reason to use external CSS, like load time, or just simply to look cleaner? |
|
|
|
|
|
#9 |
|
Diamond Member
![]() Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,137
|
Well, currently with your site using inline css ( and css in the head)
You have to duplicate it on every page right? So if you want to change for instance your paragraph style you need to change it on every page, which is manageable on a site with 5 pages, but a site with 10, 20, 50, 100 pages that would become a nightmare! An external css would only need to change the value once, no matter how many pages you have, and yes much much cleaner. In your development phase its ok (sort of) to make a css in the head whilst you get your layout sorted, but once you are happy with the template, and before duplicating in, make it external.
__________________
if (headhurts == "possibly") { alert ("keep going!"); } else if (headhurts == "yes") { alert ("go to sleep"); } else if (headhurts == "damn !@#$ mofo scripts...") { alert ("give up and have a beer!"); } else { alert ("watch TV"); } |
|
|
|
|
|
#10 |
|
Diamond Member
![]() Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,137
|
Also, load time would be quicker, and glad the penny dropped with the header!
__________________
if (headhurts == "possibly") { alert ("keep going!"); } else if (headhurts == "yes") { alert ("go to sleep"); } else if (headhurts == "damn !@#$ mofo scripts...") { alert ("give up and have a beer!"); } else { alert ("watch TV"); } |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|