Coreper Posted May 1, 2008 Author Report Share Posted May 1, 2008 ok, it looks a bit better now, but i still cant get them on their place:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Coreper - Online Portfolio</title><style type="text/css"><!--body { background-image: url(images/bg_mainframe.png); margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;}#HeaderUpCornerLeft { float: left; background-image: url('images/header/Menu_Corner_Left.png'); width: 20px; height: 146px; clear:none;}#HeaderUpCornerRight { float: right; background-image: url('images/header/Menu_Corner_Right.png'); width: 20px; height: 146px; clear:none;}#HeaderUpMiddle { float: none; background-image: url('images/header/Menu_Bar.png'); width: 958px; height: 238px; clear:none;}#HeaderUp { float: none; width: 100%; background-image: url('images/header/Menu_Stretch.png'); height: 146px; clear:none;}#Header { overflow: visible; width: 100%; min-width:998px; clear:none;}#Button_Portfolio { padding-left:300px; padding-top:7px; clear:none; width:45%;}#Button_Home { padding-right:300px; padding-top:87px; clear:none; width:45%;} --></style></head><div id="Header" align="center"> <div id="HeaderUp"> <div id="HeaderUpCornerLeft"></div> <div id="HeaderUpCornerRight"></div> <div align="center" id="HeaderUpMiddle"><div id="Button_Portfolio"><a href="portfolio.html"><img src="images/buttons/Button_Portfolio.png" alt="Button_Portfolio" name="Portfolio" width="116" height="66" align="left"/></a></div><div id="Button_Home"><a href="index.html"><img src="images/buttons/Button_Home.png" alt="Button_Home" name="Home" width="116" height="66" align="left"/></a></div> </div></div>maybe this is important: i also want to add 3 buttons on the right, and my logo in the middleall of these will become button you can click on, with mouse over images Quote Link to comment Share on other sites More sharing options...
Coreper Posted May 7, 2008 Author Report Share Posted May 7, 2008 feel free to post ;) Quote Link to comment Share on other sites More sharing options...
Mike567 Posted May 13, 2008 Report Share Posted May 13, 2008 Completely forgot, sorry.Did you try adding align: left; and align:right; to the buttons? Quote Link to comment Share on other sites More sharing options...
Coreper Posted May 13, 2008 Author Report Share Posted May 13, 2008 yeah, as you can see here:<div id="Button_Portfolio"><a href="portfolio.html"><img src="images/buttons/Button_Portfolio.png" alt="Button_Portfolio" name="Portfolio" width="116" height="66" align="left"/></a></div><div id="Button_Home"><a href="index.html"><img src="images/buttons/Button_Home.png" alt="Button_Home" name="Home" width="116" height="66" align="left"/></a></div></div>it might be important to know that:-these two buttons [Portfolio, Home] need to be on the left-a logo needs to be in the middle-three other buttons need to be on the right {as you can see here [ignore the red lines] }-the buttons on the right need to be 46 pixels from eachother-the buttons on the left need to be 2 pixels from eachother-the logo should overlap the button on its left with 43 pixels-the logo should overlap the button on its right with 50 pixelsi hope this helps [you and me ;)] Quote Link to comment Share on other sites More sharing options...
Mike567 Posted May 14, 2008 Report Share Posted May 14, 2008 I'm sure I've said this before, ideally what you want is a div box for the left side of the page and one for the right, so the left one can have home and portfolio in, and the other can have another 2 or what ever.then the home can have in the CSS align:left; and the portfolio align:right;.If it helps I normally do sketches to figure out where I want to place everything and then put boxes around them for layout, most pro designers will start out this way they don't normally put boxes around things though. Quote Link to comment Share on other sites More sharing options...
Coreper Posted May 14, 2008 Author Report Share Posted May 14, 2008 i did make sketches [the whole website design i made...]and please note that i aint a pro designer....could you please give me an example of what you mean with your layout?and shouldnt that make 3 div boxes> 2 buttons - logo - 3 buttons Quote Link to comment Share on other sites More sharing options...
Mike567 Posted May 14, 2008 Report Share Posted May 14, 2008 <div id="leftbox"> <div id="Button_Portfolio"> <a href="portfolio.html"> <img src="images/buttons/Button_Portfolio.png" alt="Button_Portfolio" name="Portfolio" width="116" height="66"/> </a> </div> <div id="Button_Home"> <a href="index.html"> <img src="images/buttons/Button_Home.png" alt="Button_Home" name="Home" width="116" height="66"/> </a> </div></div><div id="rightbox"> <div id="Button_3"> <a href="3.html"> <img src="images/buttons/Button_3.png" alt="Button_Portfolio" name="Portfolio" width="116" height="66"/> </a> </div> <div id="Button_4"> <a href="4"> <img src="images/buttons/Button_4.png" alt="Button_Home" name="Home" width="116" height="66"/> </a> </div></div>Ideally you want to keep as much stuff out of the actual html as possible and place it in CSS.This is why you see pages with layout.css and style.css, I've come across a lot more before though but yeah it makes it faster at loading pages and makes your life simpler.so in the CSS you can add to:Button_Portfolioalign:left;and to Button_Portfolioalign:right;do the same for button 3 & 4I just read over it again, I was sure I said this before, what you've done is made button_portfolio and home 45% what you want is the leftbox and right box at 45%, so you want to change the button_portfolio etc to a width of 166 by 66.You're getting there though :). Quote Link to comment Share on other sites More sharing options...
Coreper Posted May 18, 2008 Author Report Share Posted May 18, 2008 ok, this is what ive got now:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Coreper - Online Portfolio</title><style type="text/css"><!--body { background-image: url(images/bg_mainframe.png); margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;}#HeaderUpCornerLeft { float: left; background-image: url('images/header/Menu_Corner_Left.png'); width: 20px; height: 146px; clear:none;}#HeaderUpCornerRight { float: right; background-image: url('images/header/Menu_Corner_Right.png'); width: 20px; height: 146px; clear:none;}#HeaderUpMiddle { float: none; background-image: url('images/header/Menu_Bar.png'); width: 958px; height: 238px; clear:none;}#HeaderUp { float: none; width: 100%; background-image: url('images/header/Menu_Stretch.png'); height: 146px; clear:none;}#Header { overflow: visible; width: 100%; min-width:998px; clear:none;}#Button_Portfolio { padding-left:300px; padding-top:7px; clear:none;}#Button_Home { padding-right:300px; padding-top:87px; clear:none;}#Button_Info { padding-right:300px; padding-top:87px; clear:none;}#Button_About { padding-right:300px; padding-top:87px; clear:none;}#Button_Links { padding-right:300px; padding-top:87px; clear:none;}--></style></head><div id="Header" align="center"> <div id="HeaderUp"> <div id="HeaderUpCornerLeft"></div> <div id="HeaderUpCornerRight"></div> <div id="HeaderUpMiddle" align="center"><div id="leftbox" width="45%"><div id="Button_Portfolio" align="left"><a href="portfolio.html"><img src="images/buttons/Button_Portfolio.png" alt="Button_Portfolio" name="Portfolio" width="116" height="66"/></a></div><div id="Button_Home" align="right"><a href="index.html"><img src="images/buttons/Button_Home.png" alt="Button_Home" name="Home" width="116" height="66"/></a></div></div><div id="rightbox" width="45%"><div id="Button_Info" align="left"><a href="info.html"><img src="images/buttons/Button_Info.png" alt="Button_Info" name="Info" width="116" height="66"/></a></div><div id="Button_About" align="center"><a href="about.html"><img src="images/buttons/Button_About.png" alt="Button_About" name="About" width="116" height="66"/></a></div><div id="Button_Links" align="right"><a href="Links.html"><img src="images/buttons/Button_Links.png" alt="Button_Links" name="Links" width="116" height="66"/></a></div></div> </div></div></body></html></body>and this is what it looks like: not like it should:btw: would it be possible to export all my css to a file, now? Quote Link to comment Share on other sites More sharing options...
Mike567 Posted May 22, 2008 Report Share Posted May 22, 2008 Ok thats simple, yeah its easier to put it in a CSS file in my opinion.So what you need to do is put the button heights in the CSS e.g.Button_Aboutyou will put the height:whateverpx and width:whateverpx the div tag is just setting its default to what ever it feels is required because you havent said what to use.You need to do same for left and right box in the css just put width as 45% and height the same as the buttons.Then you should be done on the buttons. Quote Link to comment Share on other sites More sharing options...
Coreper Posted May 23, 2008 Author Report Share Posted May 23, 2008 this is my code now:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Coreper - Online Portfolio</title><style type="text/css"><!--body { background-image: url(images/bg_mainframe.png); margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;}#HeaderUpCornerLeft { float: left; background-image: url('images/header/Menu_Corner_Left.png'); width: 20px; height: 146px; clear:none;}#HeaderUpCornerRight { float: right; background-image: url('images/header/Menu_Corner_Right.png'); width: 20px; height: 146px; clear:none;}#HeaderUpMiddle { float: none; background-image: url('images/header/Menu_Bar.png'); width: 958px; height: 238px; clear:none;}#HeaderUp { float: none; width: 100%; background-image: url('images/header/Menu_Stretch.png'); height: 146px; clear:none;}#Header { overflow: visible; width: 100%; min-width:998px; clear:none;}#Button_Portfolio { padding-left:300px; padding-top:7px; clear:none; height:66px; width:116px;}#Button_Home { padding-right:300px; padding-top:87px; clear:none; height:66px; width:116px;}#Button_Info { padding-right:300px; padding-top:87px; clear:none; height:66px; width:116px;}#Button_About { padding-right:300px; padding-top:87px; clear:none; height:66px; width:116px;}#Button_Links { padding-right:300px; padding-top:87px; clear:none; height:66px; width:116px;}--></style></head><div id="Header" align="center"> <div id="HeaderUp"> <div id="HeaderUpCornerLeft"></div> <div id="HeaderUpCornerRight"></div> <div id="HeaderUpMiddle" align="center"><div id="leftbox" width="45%"><div id="Button_Portfolio" align="left"><a href="portfolio.html"><img src="images/buttons/Button_Portfolio.png" alt="Button_Portfolio" name="Portfolio" width="116" height="66"/></a></div><div id="Button_Home" align="right"><a href="index.html"><img src="images/buttons/Button_Home.png" alt="Button_Home" name="Home" width="116" height="66"/></a></div></div><div id="rightbox" width="45%"><div id="Button_Info" align="left"><a href="info.html"><img src="images/buttons/Button_Info.png" alt="Button_Info" name="Info" width="116" height="66"/></a></div><div id="Button_About" align="center"><a href="about.html"><img src="images/buttons/Button_About.png" alt="Button_About" name="About" width="116" height="66"/></a></div><div id="Button_Links" align="right"><a href="Links.html"><img src="images/buttons/Button_Links.png" alt="Button_Links" name="Links" width="116" height="66"/></a></div></div> </div></div></body></html></body>but it still doesnt look ok:what am i doing wrong here?btw: if i put the css styles in a file, how should that be handled in the code? Quote Link to comment Share on other sites More sharing options...
Mike567 Posted May 23, 2008 Report Share Posted May 23, 2008 You need to put the 45% in the CSS.as well as the align parts.You just put everything inside the style tags into the css file (not the style tags), and then link it to your page. Quote Link to comment Share on other sites More sharing options...
Coreper Posted May 24, 2008 Author Report Share Posted May 24, 2008 thanksi added more to the CSS:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Coreper - Online Portfolio</title><style type="text/css"><!--body { background-image: url(images/bg_mainframe.png); margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;}#HeaderUpCornerLeft { float: left; background-image: url('images/header/Menu_Corner_Left.png'); width: 20px; height: 146px; clear:none;}#HeaderUpCornerRight { float: right; background-image: url('images/header/Menu_Corner_Right.png'); width: 20px; height: 146px; clear:none;}#HeaderUpMiddle { float: none; background-image: url('images/header/Menu_Bar.png'); width: 958px; height: 238px; clear:none;}#HeaderUp { float: none; width: 100%; background-image: url('images/header/Menu_Stretch.png'); height: 146px; clear:none;}#Header { overflow: visible; width: 100%; min-width:998px; clear:none;}#leftbox { width:45%;}#rightbox { width:45%;}#Button_Portfolio { padding-left:300px; padding-top:7px; clear:none; height:66px; width:116px; text-align:left;}#Button_Home { padding-right:300px; padding-top:87px; clear:none; height:66px; width:116px; text-align:right;}#Button_Info { padding-right:300px; padding-top:87px; clear:none; height:66px; width:116px; text-align:left;}#Button_About { padding-right:300px; padding-top:87px; clear:none; height:66px; width:116px; text-align:center;}#Button_Links { padding-right:300px; padding-top:87px; clear:none; height:66px; width:116px; text-align:center;}--></style></head><div id="Header" align="center"> <div id="HeaderUp"> <div id="HeaderUpCornerLeft"></div> <div id="HeaderUpCornerRight"></div> <div id="HeaderUpMiddle" align="center"><div id="leftbox" width="45%"><div id="Button_Portfolio" align="left"><a href="portfolio.html"><img src="images/buttons/Button_Portfolio.png" alt="Button_Portfolio" name="Portfolio" width="116" height="66"/></a></div><div id="Button_Home" align="right"><a href="index.html"><img src="images/buttons/Button_Home.png" alt="Button_Home" name="Home" width="116" height="66"/></a></div></div><div id="rightbox" width="45%"><div id="Button_Info" align="left"><a href="info.html"><img src="images/buttons/Button_Info.png" alt="Button_Info" name="Info" width="116" height="66"/></a></div><div id="Button_About" align="center"><a href="about.html"><img src="images/buttons/Button_About.png" alt="Button_About" name="About" width="116" height="66"/></a></div><div id="Button_Links" align="right"><a href="Links.html"><img src="images/buttons/Button_Links.png" alt="Button_Links" name="Links" width="116" height="66"/></a></div></div> </div></div></body></html></body>this is what i see in DreamWeaver:http://img211.imageshack.us/img211/8675/website1lz6.pngand this is how the site looks like:http://img522.imageshack.us/img522/589/website2fl1.png Quote Link to comment Share on other sites More sharing options...
Coreper Posted June 4, 2008 Author Report Share Posted June 4, 2008 are you still with me? Quote Link to comment Share on other sites More sharing options...
Mike567 Posted June 4, 2008 Report Share Posted June 4, 2008 Lets try and float the buttons then, one left and the other right. Quote Link to comment Share on other sites More sharing options...
Coreper Posted June 4, 2008 Author Report Share Posted June 4, 2008 no change...should i send the html file to you so you can have a look? Quote Link to comment Share on other sites More sharing options...
Mike567 Posted June 6, 2008 Report Share Posted June 6, 2008 ok then Quote Link to comment Share on other sites More sharing options...
Coreper Posted June 6, 2008 Author Report Share Posted June 6, 2008 you can get it here: http://www.filefactory.com/file/335278/when downloading, press to download with FileFactory Basic = freethanks ! Quote Link to comment Share on other sites More sharing options...
Mike567 Posted June 7, 2008 Report Share Posted June 7, 2008 Ignore the PM, I uploaded it here.I've taken out the images so I could upload it.I'm not sure how you can add the links button, personally if I was doing a site like yours I would place it in a footer, and have the big shot buttons at the top.webpage.tar.gz Quote Link to comment Share on other sites More sharing options...
Coreper Posted June 7, 2008 Author Report Share Posted June 7, 2008 thanksbut it still doesnt work properly:http://img74.imageshack.us/img74/3639/websitexw9.pngit looks very weird in IE7 [my main browser], and in Opera it the buttons are all next to eachother, but not properly positioned: they stick to the left... Quote Link to comment Share on other sites More sharing options...
Mike567 Posted June 7, 2008 Report Share Posted June 7, 2008 wooo Opera good!Supprised it looks different in opera as well.it just involves doing some IE hacks.I can't help you out their I don't exactly run MS anymore sorry.http://www.positioniseverything.net/articl...7-dehacker.htmlJust remember don't overly modify it that is where you got in trouble in the first place, when I said change something you kept the old part their and added the other part causing a lot of confliction in the code.Ideally with css hacks you will just be making another sheet style, all you need to do is copy the other one call it like iehack.css and modify the values untill it looks right. Quote Link to comment Share on other sites More sharing options...
Coreper Posted June 11, 2008 Author Report Share Posted June 11, 2008 but do you think making this website with css and divs is possible?if not, i will create a table layout, which is very simple.... Quote Link to comment Share on other sites More sharing options...
Mike567 Posted June 12, 2008 Report Share Posted June 12, 2008 Its possible I did it perfectly fine on Kubuntu under Firefox, I've added a screenshot below.Its just the difference of having a faster loading time and a professional method of coding Vs old school coding and slower loading times.Once you make it in tables its really hard to edit anything.Personally I say go with whats easiest to you and if you want to get into CSS layouts then begin smaller, your jumping into the deep end I would say. Quote Link to comment Share on other sites More sharing options...
Coreper Posted June 12, 2008 Author Report Share Posted June 12, 2008 well, not perfectly...very good though:-the buttons need to be further seperated from eachother-the buttons need to be positioned further away from the center-you forgot the "Links" button the right part of the headerbut you think i should let this go and make what i can do the best?if so, do you know this:is is possible to do the following:when the mousecursor goes over an image [lets say, 400x300 px], it needs to change into another image [with a size of 300x400] > a mouseover imagebut is it possible to apply a mouseover image which isnt the same size as the original image? Quote Link to comment Share on other sites More sharing options...
Mike567 Posted June 12, 2008 Report Share Posted June 12, 2008 You've asked me this before.It will make a effect, ideally you want to turn them into a png or gif which allows transparency so it will not move naything else and have the illusion it is a mouse over effect. Quote Link to comment Share on other sites More sharing options...
Coreper Posted June 13, 2008 Author Report Share Posted June 13, 2008 yeah....., but is it possible to do what i asked? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.