Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

Header widget positioning


  #1  
Old Jun 19, 2011, 06:06 PM
jtsharp
 
23 posts · Mar 2010
I know this has probably been asked before, and it's more a CSS question than anything, but I can't seem to find the answer after searching for an hour both here and on W3 schools. I'm trying to position a widget with a phone number in the top right of the header area. I can get it where I want, but when I go to resize the window horizontally (smaller) , the phone number doesn't "go with" the header. Any suggestions?

http://www.drmichaelgriffith.com

ATA 3.6.4
  #2  
Old Jun 19, 2011, 06:23 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
This is one of the messy things about positioning. If you make it 'absolute', it doesn't move at all, make it 'relative' and the space it was in remains unless you use a height of '0' and if you make the page small enough it floats off the edge, but try and see if this helps and give the page a minimum width.
HTML Code:
div#header_widget {
    color: #6A270A;
    font-family: 'Oswald',arial,sans-serif;
    font-size: 34px;
    font-weight: bold;
    height: 0;
    position: relative;
    right: -850px;
    top: -70px;
}
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jun 19, 2011, 06:37 PM
jtsharp
 
23 posts · Mar 2010
That does help in the sense that the text stays on one line when I resize the window, but it still meanders outside of the white header space when the window gets small enough. I set a minimum width of 900px, but that's arbitrary. Hm...
  #4  
Old Jun 19, 2011, 09:46 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
You just have to set a minimum width for you layout and perhaps adjust the right position.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #5  
Old Jun 19, 2011, 10:37 PM
jtsharp
 
23 posts · Mar 2010
Thanks to both of you for the responses I feel pretty embarrassed here, but I must be missing something with the minimum layout. I tried several different "sizes" (500 px, 900 px, 1000 px, etc.) and couldn't notice any difference when I resized my window. The widget's text is still spilling over into the tan background. I apologize if this is an easy fix that I'm just not understanding!
  #6  
Old Jun 20, 2011, 04:52 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you need to make sure the phone number in positioned inside the minimum width of the page
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Positioning RSS buttons in header qbuster Header configuration & styling 1 Oct 25, 2010 10:34 AM
Positioning Google Translation Element in Header arlandiz Header configuration & styling 0 Aug 13, 2010 06:39 PM
Positioning the header icon (?) GrahamW Header configuration & styling 13 Aug 12, 2010 09:28 AM
Positioning widget onto logo area creates extra spacing in the overall header area cab262 Header configuration & styling 1 May 20, 2010 02:14 PM


All times are GMT -6. The time now is 07:37 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.