Home   News  Product reviews  Website reviews  Forums   Competitions  Subscribe 
Click for the best Google Earth extras


Web Building >> Web design & build
 |  Print Topic
Jump to first unread post. Pages: 1
lipstud
new user


Reg'd: Fri
Posts: 3
Help with CSS divs
      #350942 - Fri Jun 01 2007 01:15 PM

hey everybody, hope someone can help me with this

i did a tutorial on webreference to recreate their hope page, and i found it really fun and interesting and its made me want to learn more about css and divs

ive got some really basic code, and i think its probably a really simple reason that its not working. but for someone whos just started, its stopped me in my tracks

Code:
  <style type="text/css">
body {
background:#FFFFFF;}

#main {
width:100%;
margin:0px;
padding:1px;
background:#FFFFFF;}

#lNav {
float:left;
position:relative;
visibility:visible;
top:5px;
left:5px;
width:150px;
height:100%;}

#midCol {
position:relative;
visibility:visible;
top:5px;
left:165;
width:inherit;
height:100%;}

#rNav {
float:right;
position:relative;
visibility:visible;
top:5px;
right:5px;
width:150px;
height:100%;}


#lNav,#midCol,#rNav {
background:#ffffff;
border-top:4px;
border-left:1px;
border-right:1px;
border-bottom:1px;
border-style:solid;
border-color:#000000;}


#lNav hd,#midCol hd,#rNav hd {
font:bold .8em Courier;
background:#ffffff;}

</style>

<div id="main">
<div id="rNav"><hd>rNav</hd></div>
<div id="lNav"><hd>lNav</hd></div>
<div id="midCol"><hd>midCol</hd></div>
</div>



what i want to happen - rNav to stay on the right side and not change width, lNav to stay on the left and not change width, and the div in the middle to resize according to the width of the web browser.

it works in the tutorial that i did on webreference, but when i try to recreate the effect it doesnt

ive really tried my best (which probably isnt much) at fixing the problem, but its still not working

can anyone help? (remember im new to it, so try and go easy lol)

lipstud

Edited by lipstud (Fri Jun 01 2007 01:16 PM)


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


Reg'd: Tue
Posts: 142
Re: Help with CSS divs [Re: lipstud]
      #351033 - Sat Jun 02 2007 03:16 AM

hi lipstud,

<hd> </hd> is not a tag.

Did you mean <h1> ?

All the best - Duncan

--------------------
bolitho
Under One Roof


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


Reg'd: Fri
Posts: 3
Re: Help with CSS divs [Re: Dunx]
      #351123 - Sat Jun 02 2007 07:45 PM

i thought you could use your own tags as long as you'd defined them

h1 didnt change anything, i still dont know how to get the effect i want


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


Reg'd: Tue
Posts: 135
Loc: Yorkshire, UK
Re: Help with CSS divs [Re: lipstud]
      #351169 - Sun Jun 03 2007 12:26 AM

have you got the link to the tutorial?

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


Reg'd: Fri
Posts: 3
Re: Help with CSS divs [Re: Wiggster]
      #351211 - Sun Jun 03 2007 11:35 AM

http://www.webreference.com/authoring/style/sheets/layout/advanced/

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

Rate this topic

Jump to


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

Moderator:  putasolutions, Joe_London, greysts, bricat, Nanook, 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