BioRUST SiteWide Search
- Biorust Tutorials ONLY
- Biorust Downloads ONLY
- Biorust Forums ONLY
BioRUST Forums
>
Graphics Software & Support
>
HTML / PHP / ASP / JS
CSS positioning
User Name
Remember Me?
Password
Register
Blogs
Forum Rules
Members List
Search
Today's Posts
Mark Forums Read
LinkBack
Thread Tools
Display Modes
04-21-2008
#
1
(
permalink
)
bluemermaid
Registered User
Join Date: Apr 2008
Posts: 8
CSS positioning
HELP! I am trying to figure out how to keep my logo which is in a div inside the header div from moving when the browser window is resized. I've been reading about percentages and fixed positions, and maybe just working on it too long ~ not making sense to me!!
Spanish Flowers Mexican Restaurant - About Us
My CSS code:
#logo {
position: absolute;
left: 150px;
top:0
}
and html
<div id="header"><div id="logo"><img src="images/SFlogo2.gif" alt="Spanish Flowers Mexican Restaurant" /></div><div id="animat"><img src="images/topheaderanim.gif" alt="Voted Houston's Best" /></div></div>
Thanks in advance if anyone can help me!
Blue Mermaid
04-22-2008
#
2
(
permalink
)
agentxi
photoshop ninja
Join Date: Oct 2006
Location: Red Deer - ish, alberta
Posts: 500
you can probably change the absolute to relative then adjust your left/top settings appropriately..
__________________
Your a Graphic Designer...If you could go back in time you wouldn't go back to see the rise and fall of civilizations, you'd go back in time to destroy comic sans and papyrus.
04-22-2008
#
3
(
permalink
)
bluemermaid
Registered User
Join Date: Apr 2008
Posts: 8
Sorry, I should have said that I tried that and didn't work. Thanks for taking the time to help.
04-22-2008
#
4
(
permalink
)
agentxi
photoshop ninja
Join Date: Oct 2006
Location: Red Deer - ish, alberta
Posts: 500
that's wierd, when i did it, used the following
Code:
#logo { position: relative; left: 15px; top:0 }
and when i resized the browser, it always stayed 15px away from the left side of the edge.
__________________
Your a Graphic Designer...If you could go back in time you wouldn't go back to see the rise and fall of civilizations, you'd go back in time to destroy comic sans and papyrus.
04-23-2008
#
5
(
permalink
)
Jacorre
Be Unique. Be Heard.
Join Date: Jul 2006
Location: USA
Posts: 472
If you're absolutely positioning the logo you need something else to be positioned relative. Based on your code it looks like the header should have position equal to relative. Take a look at my tutorial on
absolute positioning
for more information if needed.
__________________
Jacorre Studios Blog
04-24-2008
#
6
(
permalink
)
bluemermaid
Registered User
Join Date: Apr 2008
Posts: 8
THANK YOU so much Jacorre!!! That was the missing link. I kept reading about absolute and relative positioning and was almost getting it, but that was the light bulb I needed!!
04-25-2008
#
7
(
permalink
)
Jacorre
Be Unique. Be Heard.
Join Date: Jul 2006
Location: USA
Posts: 472
Quote:
Originally Posted by
bluemermaid
THANK YOU so much Jacorre!!! That was the missing link. I kept reading about absolute and relative positioning and was almost getting it, but that was the light bulb I needed!!
Glad I could help! Absolute positioning can be a little confusing at first, but with practice you understand it a lot more over time.
__________________
Jacorre Studios Blog
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
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
Forum Jump
User Control Panel
PM's
Subscriptions
Who's Online
Search Forums
Forums Home
General Community Forums
Announcements
BioRUST Specific Threads
Tutorial Submission
General Discussions
Introductions
Battles System Discussion
Showrooms & Works In Progress
The Marketplace
Graphics Software & Support
3D Modelling
Blender 3D
Cinema 4D
Adobe Photoshop
Flash & Dynamic Media
HTML / PHP / ASP / JS
Illustration, Sketching & Vector Art
Photography & Photo Manipulation
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
more positioning problems with layers! ??
jbone
HTML / PHP / ASP / JS
4
02-12-2008
08:09 PM
All times are GMT +1. The time now is
08:04 AM
.
Content Relevant URLs by
vBSEO
3.2.0
Contact Us
-
BioRUST.com
-
Archive
-
Privacy Statement
-
Top
Design & Content © BioRUST 2007 ::
PRIVACY STATEMENT
::
LEGAL INFORMATION
::
ADVERTISING MEDIA KIT