UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Services > Web Designing and Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 18-11-2007, 15:23
Ben Ben is offline
Premium Member
 
Join Date: Jan 2007
Location: setcookie()
Posts: 1,205
Send a message via AIM to Ben Send a message via MSN to Ben Send a message via Yahoo to Ben
Default another prob (css)

I'm adding an image with the background-image property which will be right above the content box... ill show you a preview of it with the html bbcode (mind some graphics won't show up obviously)

HTML Code:
<html>
<head>
<title></title>
<style type="text/css">

div.body {
height: 33em;
margin: 3px 3px 3px 3px;
border-color: black;
border-style: solid;
border-width: 1px;
background-color: orange;
}

div.gradientbox {
height: 20px;
width: 1000px;
border-color: black;
border-style: solid;
border-width: 1px;
background: url("gradient.jpeg") repeat-x;
}

img#welcome {
background-image: url("welcome.jpeg");
background-repeat: no-repeat;
background-attachment: fixed;
}

div.box1 {
width: 200px;
height: 200px;
overflow: auto;
padding: 3px 3px 3px 3px;
margin-left: 2em;
padding 3px 3px 3px 3px;
border-color: black;
border-style: double;
border-width: 3px;
background-color: white;
}
</style>
</head>
<body>
<div class="body">
<div class="gradientbox">Text</div>
<img id="welcome">
<div class="box1">Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text</div></div>
</body>
</html>
So the problem is that the I have used the img#welcome id selector and then within the section I added - any help appreciated.

Code:






Text
Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text
Note: It wont show up correctly in the above frame but works fine in my browser.
__________________
dynBB.com PHP Tutorials & Webmaster Help Forums - need help? find PHP tutorials, help & more @ dynBB.com forums! CSS, PHP, MySQL & more!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 18-11-2007, 15:46
developmentxl's Avatar
Member
 
Join Date: Nov 2007
Location: Edinburgh
Posts: 64
Default

Hello again Ben,

Sorry if you already know any of this, thought I'd best start at the beginning!

There are two ways of displaying an image, using the IMG tag or using CSS to apply a background to an element.

It seems the two are getting mixed up here, to use the IMG tag simply use:

HTML Code:
<img src="welcome.jpeg" />
Or you could do this using CSS;

Notes:
  • I'm using an H1 tag here for accessibility reasons - all HTML should have a purpose when styles are turned off, this is a whole other story though!
  • Set the width and height to the dimensions of your image,
  • The text indent hides the text that will only be displayed when styles are turned off.

CSS
HTML Code:
h1#welcome {
text-indent: -9999px;
background-image: url("welcome.jpeg");
background-repeat: no-repeat;
background-attachment: fixed;
width: 100px;
height: 100px;
display: block;
}
HTML
HTML Code:
<h1 id="welcome">Welcome to my [url=http://www.eukhost.com/]website hosting[/url]</h1>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


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

 

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles

Web Hosting
Web Hosting Service