Div outside wrap issue

This is a discussion on "Div outside wrap issue" within the Web Page Design section. This forum, and the thread "Div outside wrap issue 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 Oct 14th, 2006, 20:27
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 304
Thanks: 1
Thanked 0 Times in 0 Posts
Div outside wrap issue

I'm trying to get the red 'year' tag to fit exactly on the right edge of my magazine:

www.timothy-clark.com/mag

It works on my Safari but not on pc. CSS:

#year {
position: absolute;
right: 0px;
left: 775px;
margin: 0 auto;
padding: 0;
width: 25px;
}

Help please.
Reply With Quote

  #2 (permalink)  
Old Oct 14th, 2006, 22:34
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div outside wrap issue

If only I had a PC to test on. Try something like this:

Code: Select all
#year {
    position: absolute;
    right: 0;
    left: 775px;
    width: 25px;
    height: 80px;
    margin: 0;
    padding: 0;
    display: block;
}
Reply With Quote
  #3 (permalink)  
Old Oct 14th, 2006, 22:37
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div outside wrap issue

Setting margin and padding to zero isn't necessary if the tag doesn't have any other CSS applied to it conflicting with those two, but I thought I'd add it just in case.
Reply With Quote
  #4 (permalink)  
Old Oct 14th, 2006, 23:02
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 304
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Div outside wrap issue

thanks a lot. i'll test it out and get back.
Reply With Quote
  #5 (permalink)  
Old Oct 14th, 2006, 23:16
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 304
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Div outside wrap issue

no, hasn't worked. that's made it do what it does on the pc, on my mac.
Reply With Quote
  #6 (permalink)  
Old Oct 14th, 2006, 23:28
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div outside wrap issue

Oh, I see the problem. You can't center something that absolutely positioned. Safari is apparently more forgiving than other browsers, but that's not how CSS works.

You don't seem to have a wrapper at all. Try putting everything in the header in a wrapper. Then you'll have a foundation for the year tag to be positioned correctly.
Reply With Quote
Reply

Tags
div

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
How to text wrap? Quetzal Web Page Design 9 Jun 3rd, 2008 18:58
[SOLVED] Centralising a sub-wrap Madball Web Page Design 10 Nov 6th, 2007 14:43
div wrap height centred jillcary Web Page Design 1 Jul 24th, 2007 16:05
div wrap not working on IE pc jillcary Web Page Design 5 Jul 19th, 2007 17:33
How to wrap text around a div AdRock Web Page Design 6 Sep 5th, 2006 19:02


All times are GMT. The time now is 04:30.


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