"next!"

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


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 15th, 2006, 11:40
Highly Reputable Member
Join Date: Aug 2005
Location: 3rd Branch Up, Old Oak.
Age: 48
Posts: 658
Thanks: 0
Thanked 0 Times in 0 Posts
"next!"

Okay, I seem to be starting to get somewhere with bits of this but I'm still nowhere near an overall picture and I can't find the info I need to get to the next step of my exercise:-

I have a scrolling background image (repeat-y center).

I've now made an expanding box to go on top of it, which I've tested separately so I know it's working. But, I don't seem to be able to lay the latter on top of the former. All I see is the orginal background image which makes up most of the page.

CSS
Code: Select all
.340box {
 width: 340px;
 background: url('Boxes/340wide/340Middle.jpg') repeat-y;
 z-index: 1;
}
.340box h2 {
 background: url('Boxes/340wide/340Top.jpg') no-repeat left top;
 padding-top: 10px
}
.340box .last {
 background: url('Boxes/340wide/340Bottom.jpg') no-repeat left bottom;
 padding-bottom: 10px
}
.340box h2, .340box p {
 padding-left: 20px;
 padding-right: 20px;
 
}
HTML
Code: Select all
<body>
<div class="340box">
 <h2>Test Header</h2>
 <p class="last">Lorem Ipsum Thingummybob</p>
</div>
</body>
Result (on blank page)

The 'Boxes/340wide/340Middle.jpg' is a 1px high image, the width of the box (and don't say "It doesn't line up!", I realised as soon as I got this far. *sigh* )

Also, I don't seem to be able to format the text (font / size etc).
Is there a clever reason why?
I've checked the code on W3C so I'm assuming it must be connected to the way I'm creating the box to put it in (?).

Last edited by Legacy_Staff; Jul 15th, 2006 at 11:43.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 15th, 2006, 20:34
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: "next!"

Where is the css for the scrolling background?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 15th, 2006, 22:23
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: "next!"

Put your box inside another div, and do the style and position on the containing box.

The z-index is superfluous - you don't need it and it wouldn't work anyway.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 18th, 2006, 15:21
Highly Reputable Member
Join Date: Aug 2005
Location: 3rd Branch Up, Old Oak.
Age: 48
Posts: 658
Thanks: 0
Thanked 0 Times in 0 Posts
Re: "next!"

Aww crud!
Sorry guys but the database lost your posts and I hadn't tried them yet.
Any chance you could repost?
Pretty please?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jul 18th, 2006, 17:05
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: "next!"

I was wondering what happened to mine.

Basically you want one div to contain all 3 elements of the box.

<div id="foo">
<div id="boxtop">&nbsp;</div>
Content here
<div id="boxbottom">&nbsp;</div>
</div>

You put the middle repeating pattern on #foo. That should work for you.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jul 18th, 2006, 23:05
Highly Reputable Member
Join Date: Aug 2005
Location: 3rd Branch Up, Old Oak.
Age: 48
Posts: 658
Thanks: 0
Thanked 0 Times in 0 Posts
Re: "next!"

Thx Mooj.
so it doesn't matter where I place the repeat jpg in the sequence?
Coding it at the top of the sequence will still work, even if it starts to repeat after the top jpg?

[edit: Re the content. There no elements or anything for that? I just enter it 'as is', in the middle?]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jul 19th, 2006, 12:36
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: "next!"

No you would use whatever html you need in there and you place the side repeating pattern on the containing div and place the corner images above and below your content. IE may add an extra space after the bottom one so just tack on an overflow:hidden; and that should fix that.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jul 19th, 2006, 15:03
Highly Reputable Member
Join Date: Aug 2005
Location: 3rd Branch Up, Old Oak.
Age: 48
Posts: 658
Thanks: 0
Thanked 0 Times in 0 Posts
Re: "next!"

Quote:
Originally Posted by moojoo View Post
overflow:hidden.
Ummm... may be back to you on that bit.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
quotnextquot

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
Creating a "tag" system to find relevant "related" pages MrQuestions PHP Forum 3 Mar 20th, 2008 23:06
[SOLVED] Show "Image" Depends On User "Status"? Monie Classic ASP 6 Oct 16th, 2007 01:22
? IS "meta name="robots" content="?" necessary in pages ? Love2Java Starting Out 6 Aug 8th, 2007 13:48
window.opener.document["nameForm"].getElementById("someid").value; doesnt work drpompeii JavaScript Forum 0 Feb 17th, 2007 23:09
Need to build a "Trip" or "Journey Planner" jswebdev PHP Forum 4 Dec 5th, 2005 23:22


All times are GMT. The time now is 10:00.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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