This is a discussion on "Can <span></span> tags have position relative?" within the Web Page Design section. This forum, and the thread "Can <span></span> tags have position relative? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Can <span></span> tags have position relative?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
||||
|
||||
|
Can <span></span> tags have position relative?
Can <span></span> tags have position relative?
I am trying to use this image replacement technique bellow. The problem is that when I minimize the browser window the image is set to a new position on my page. Would this also happen when someone with a different size monitor to mine views the page? How can I stop this happening? I was thinking to use relative positioning.
|
|
|
|
#2
|
||||
|
||||
|
Re: Can <span></span> tags have position relative?
Add
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
#3
|
||||
|
||||
|
Re: Can <span></span> tags have position relative?
|
|
#4
|
||||
|
||||
|
Re: Can <span></span> tags have position relative?
Have I missed something?
|
|
#5
|
||||
|
||||
|
Re: Can <span></span> tags have position relative?
Apply the positioning to #header span instead of #header.
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
#6
|
||||
|
||||
|
Re: Can <span></span> tags have position relative?
You can see in the screen shots that, as I have left out the positioning of the #header, the <h1> text is no longer hidden by the image. Attached screen shoots: The second one is of the page minimized slightly. Last edited by Oak; Mar 9th, 2008 at 14:18. |
|
#7
|
||||
|
||||
|
Re: Can <span></span> tags have position relative?
Ok, I have not being paying attention! Sorry Oak, try this;
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
#8
|
||||
|
||||
|
Re: Can <span></span> tags have position relative?
So you have left out the span!
before
This time the <h1> key words seem to be covered by the logo, which is what I want but the Logo still moves with screen size. |
|
#9
|
||||
|
||||
|
Re: Can <span></span> tags have position relative?
No, copy the code exactly as I have posted. Remove the span element and it's styles.
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
#10
|
||||
|
||||
|
Re: Can <span></span> tags have position relative?
Quote:
|
|
#11
|
||||
|
||||
|
Re: Can <span></span> tags have position relative?
I'd have to see it for myself - you got a link?
If you want the header to move with your design, you'll need to contain it within another element, or use an alternative to position: absolute.
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
#12
|
||||
|
||||
|
Re: Can <span></span> tags have position relative?
Quote:
http://www.capoeiracanal.co.uk/index-header.php Last edited by Oak; Mar 9th, 2008 at 16:32. |
|
#13
|
||||
|
||||
|
Re: Can <span></span> tags have position relative?
Set #maincontent to position:relative.
This means you can then position the h1 absolutely, relative to the maincontent div
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
#14
|
||||
|
||||
|
Re: Can <span></span> tags have position relative?
aso186, you are a genius, thanks.
This works and permits me to use the original code the only thing now is that key words fall on the same line as the Nav bar text when viewing the page with images turned off. Thanks for your help, I could not have done that on my own! |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| From table tags to div and span | abdoukadri | Web Page Design | 6 | Dec 5th, 2007 22:57 |
| <SPAN> help | Access | JavaScript Forum | 2 | Nov 3rd, 2007 18:13 |
| Div and Span tags... | jjgamepro17 | Web Page Design | 4 | Nov 7th, 2006 19:22 |
| Span questions | maxelcat | Web Page Design | 2 | Aug 7th, 2006 11:07 |
| Wrapping by span | hessodreamy | Web Page Design | 3 | Sep 14th, 2005 07:34 |