branding




Web Building >> Web design & build

 |  Print Topic Pages: 1
crashb648
new user


Reg'd: Sat
Posts: 23
css 3 coloum layout?
      #439515 - Sat Oct 03 2009 12:07 PM

Hello everyone!

I am still getting to grips with css. I have done a how page using css, but come across a problem when i have tried to do a three coloum layout at the bottom of the page:

As you can see, the left (named toplink) and middle coloums (the top one is called storyhead and the one below it is called storynav) are fine, but the right one (top link) wont go to the right. Can anyone please help?

Here's the html code:

<div id="backlink">
<a href="javascript:history.go(-1)"><img border="0" src="images/backicon.png" alt="back" width="80" height="50" /></a>
</div>

<div id="storyhead">
Charlotte's Story Navigation
</div>

<div id="storynav">
<a href="story.php"><em>Page 1</em></a> | <a href="story2.php"><em>Page 2</em></a> | <a href="story3.php"><em>Page 3</em></a> | <a href="story4.php"><em>Page 4</em></a> | <a href="story5.php"><em>Page 5</em></a>
</div>

<div id="toplink">
<a href="#top"><img border="0" src="images/topicon.png" alt="top" width="80" height="50" /></a>
</div>


Heres the css:

div#backlink
{float: left; width: 100px; height: 50px; padding: 0px; margin: 0px;
background-color:#000000; border-top: thin solid #000000; color:#FFFFFF;}

div#storyhead
{float: right; width: 740px; height: 25px; padding: 0px; margin-left: 100px;
text-align: center; font-family: verdana; font-weight: bold; font-size: 10pt;
border-top: thin solid #000000; color:#778899;
background-color:#000000; }

div#storynav
{float: right ; width: 740px; height: 25px; padding: 0px; margin-left: 100px;
text-align: center; font-family: verdana; font-weight: bold; font-size: 10pt; color:#778899;
border-top: thin solid #000000;
background-color:#000000; }

div#toplink
{float: right; width: 100px; height: 50px; padding: 0x;
background-color:#000000; border-top: thin solid #000000; color:#FFFFFF; }


Post Extras: Print Post   Remind Me!   Notify Moderator  
crashb648
new user


Reg'd: Sat
Posts: 23
Re: css 3 coloum layout? [Re: crashb648]
      #439519 - Sat Oct 03 2009 01:29 PM

Here's the screenshot of the problem, i forgot to post it in the previous post! haha



Can anyone help me?


Click to view...

Edited by TheFatControlleR (Sat Oct 03 2009 02:42 PM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
ianm
regular


Reg'd: Fri
Posts: 371
Loc: Colchester
Re: css 3 coloum layout? [Re: crashb648]
      #439557 - Sun Oct 04 2009 04:17 PM

Have juggled a few things around in the html mostly dont think its still quite right but it should be closer, you might need to add a little bit of padding to a few things but I was not quite to sure how it is meant to look, anyway have a play with the following see if its works any better, i was tempted to redo the whole thing but I guess that would have taken away the fun of learning.

html



<div id="storyhead">
<a href="javascript:history.go(-1)"><img border="0" src="images/backicon.png" alt="back" width="80" align="left" height="50" /></a>
Charlotte's Story Navigation
<a href="#top"><img src="images/topicon.png" alt="top" width="80" height:"50px" border="0" align="right" /></a></div>

<div id="storynav">
<a href="story.php"><em>Page 1</em></a> | <a href="story2.php"><em>Page 2</em></a> | <a href="story3.php"><em>Page 3</em></a> | <a href="story4.php"><em>Page 4</em></a> | <a href="story5.php"><em>Page 5</em></a>





</div>
</div> <!-- end of story nav div -->



css


div#storyhead
{width: 100%; height: 25px; margin: 0 auto;
text-align: center; font-family: verdana; font-weight: bold; font-size: 10pt;
border-top: thin solid #000000; color:#778899;
background-color:#000000; }

div#storynav
{width: 100%; height: 25px; padding: 0px; margin: 0 auto;
text-align: center; font-family: verdana; font-weight: bold; font-size: 10pt; color:#778899;
border-top: thin solid #000000;
background-color:#000000; }



Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1

Rate this topic

Jump to


Extra information
0 registered and 5 anonymous users are browsing this forum.

Moderator:  putasolutions, Joe_London, greysts, bricat, Hello_There, John_McKenna, Mouse, TheFatControlleR 


Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      Mark-up is enabled

Rating:
Topic views: 0

Contact Us | Privacy statement Main website



Search

© Copyright IPC Media Limited 2009, All rights reserved