Positioning image absolutely

This is a discussion on "Positioning image absolutely" within the Web Page Design section. This forum, and the thread "Positioning image absolutely 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 Jan 9th, 2006, 17:26
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts
Positioning image absolutely

It's amazing how quickly you can go rusty.

I'm trying to position a logo absolutely on my homepage like this:

<div style="position:absolute; top:80px;">
<a href="http://www.asite.co.uk/"><img src="mylogo.gif" width="77" height="30" vspace="0" hspace="0" border="0" alt="something"></a>
</div>

I've put that in the index.html not in the css. Can this only be done with CSS, ie - not just in the normal page?
Reply With Quote

  #2 (permalink)  
Old Jan 10th, 2006, 02:27
SuperMember

SuperMember
Join Date: Aug 2003
Location: Castle Rock, CO
Age: 36
Posts: 164
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Positioning image absolutely

Actually you have used inline CSS. CSS can be external
HTML: Select all
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
internal
HTML: Select all
<head>
<style type="text/css">
label,input {
display: block;
float: left;
margin-bottom: 10px;
}
input, select, textarea
{
border: solid 1px #000;
background-color: #fff;
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 1.0em;
}
</style>
</head>
inline
HTML: Select all
<div style="position:absolute; top:80px;">
What DOCTYPE are you using right now? If you are not using a DOCTYPE and viewing it on internet explorer, the browser might be thrown into quirks mode. You can also check out Full CSS Property Compatibility Chart which is great when trying to do a few things and you are having problems (it can help to determine if it is your coding your the browser).
You can even use something like
HTML: Select all
<a href="http://www.asite.co.uk/"><img src="mylogo.gif" style="position:absolute; top:80px;;width:77px; height:30px; border:0;" vspace="0" hspace="0" alt="something"></a>
as well which will cut down some on the code.
Of course, if you are using this on all your pages, you might consider just adding it your your external cascading style sheet.
Reply With Quote
Reply

Tags
positioning, image, absolutely

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
[SOLVED] positioning something inside an image danny322 Web Page Design 3 Dec 5th, 2007 13:36
Image positioning and differences in IE/FF 0413 Web Page Design 33 Sep 25th, 2007 21:19
Positioning an image with a link pregnantNproud Web Page Design 8 Aug 12th, 2007 01:33
Problem with image positioning Marc Web Page Design 1 May 31st, 2007 18:17
image positioning usind div container gemguy Web Page Design 5 May 25th, 2007 08:04


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


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