Defeated by.....a horizontal rule!

This is a discussion on "Defeated by.....a horizontal rule!" within the Web Page Design section. This forum, and the thread "Defeated by.....a horizontal rule! are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 1st, 2006, 17:26
New Member
Join Date: Sep 2006
Location: England
Age: 22
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Defeated by.....a horizontal rule!

Hi everyone!

Apologies for no formal introduction in the "new members forum", but i've got this problem that i just can't seem to figure out!

I recently started building my personal website to show off some of my 3D work, however i've currently been defeated by.....a Horizontal Rule!!

If someone could kindly take a look at [link] (my website in progress), i have placed a horizontal rule in between two of my nested div boxes (my recent work examples), however it is spaced unevenly and doesn't even show up in firefox!!

Would any of you CSS gurus be able to take a look and let me know where i'm going wrong? Its bound to be a simple setting somewhere, but i'm still getting to grips with CSS (and pulling hair out in the process!).

thanks in advance for any help!

EDIT:
just changed the "<hr>" to a div, as per a suggesstion from one of my friends online...but to no avail. all i want is a dotted line to seperate my "recent work" submissions, but CSS doesn't like me today!

James

Last edited by wickywills; Sep 1st, 2006 at 17:28. Reason: update
Reply With Quote

  #2 (permalink)  
Old Sep 1st, 2006, 20:09
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Defeated by.....a horizontal rule!

If you want it where I think you want it, try this css:
Code: Select all
#box-recentsubmissions p {
   border-bottom: 1px dashed #000;
}
This will add a border to the bottom of the <p> tag at top of the relevent <div>.

Add some bottom margin if you want a bit more space between the title and the line.

Also get rid of the frames. They have no place in modern xhtml layouts.

You have no end of sysntax errors. Run your page through th W3C validator.

There is scope for quite a few less <div>'s.
Reply With Quote
  #3 (permalink)  
Old Sep 1st, 2006, 20:39
New Member
Join Date: Sep 2006
Location: England
Age: 22
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Defeated by.....a horizontal rule!

Quote:
Originally Posted by ukgeoff View Post
If you want it where I think you want it, try this css:


Code: Select all
#box-recentsubmissions p {
Code: Select all
border-bottom: 1px dashed #000;
}
This will add a border to the bottom of the <p> tag at top of the relevent <div>.

Add some bottom margin if you want a bit more space between the title and the line.

Also get rid of the frames. They have no place in modern xhtml layouts.

You have no end of sysntax errors. Run your page through th W3C validator.

There is scope for quite a few less <div>'s.


Thanks very much for the info. I can't get rid of the frames as they are put in by "1and1.com" who iFrame my site under my domain with them, if that makes sense. Though i am considering going elsewhere, as i don't rate 1and1 at all. THis is also the reason why I get some rather nasty W3C validation errors when i try to validate it from my 1and1 domain ("no doctype found" for example!!). Though if i validate from my actual webspace address, things are a bit less harsh, and only requires some small changes.

I'm just playing around with adding border-bottoms to a couple of the divs to achieve a dashed divider between "recent submissions", though is there any reason why when i put an <hr/> between the two "recent work" boxes things go out of hand? An HR i thought, would be the 'correct' solution, as if i added a border-bottom to each of the "recent work" boxes, it would also be added to the bottom one on the page, and i only want the "divider effect" to appear in-between the boxes if that makes sense.

again, i very much appreciate your help with this

Reply With Quote
Reply

Tags
defeated, bya, horizontal, rule

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IFrame left horizontal scrollbar and top horizontal scroll bar jadeite100 Web Page Design 6 May 29th, 2007 09:45
Horizontal CSS Navigation Lchad Web Page Design 7 Dec 5th, 2006 19:04
Vaild Css Rule andy_117 Introduce Yourself 2 Oct 3rd, 2005 21:14


All times are GMT. The time now is 07:15.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43