Help with website design

325i

Senior Member
Joined
Jan 1, 2011
Messages
553
Reaction score
27
Location
Durbs
Hey guys I was wondering if someone could help me. I'm in the process of making a web project for school and I would like to know if there is a way you can take an image say "300x300" and repeat it only horizontally, as if to make a banner, or would making a banner be more easier. I am new to CSS and HTML, using Dreamweaver CS5.
Thanks :)
 
#div_id_with_background { url('path/to/image.jpg') repeat-x; }


something like that...
 
Last edited:
Check out W3Schools. Best place to start learning about HTML, Javascript, CSS and general web design. Do the tutorials, and use the website as a reference. Very helpful.
 
Thanks guys I did use w3schools but then I forgot about it :D thanks guys
 
Hey guys, so I have another problem. I want to embed a sound into my webpage though every code I try it doesn't work.
<embed name="music_playlist"
src="../../../Music/NFS.m3u"
width="300"
height="90"
loop="false"
hidden="false"
autostart="false">
</embed>

this is the one I'm using...
Thanks in advanced

<html>
<head>

<link rel="stylesheet" href="../CSS/Main Page.css" type="text/css" media="screen">
</head>

<div id="navigation">



<body>



<div id="navigation">
<ul>
<li><a href="Main Page.html">Main Page</a></li>
<li><a href="Contents.html">Contents</a></li>
<li><a href="Underground.html">Underground</a></li>
<li><a href="Most Wanted.html">Most Wanted</a></li>
<li><a href="Hot Pursuit.html">Hot Pursuit</a></li>
<li><a href="Bibliography.html">Bibliography</a></li>
</ul>
</div>

<embed name="music_playlist"
src="../../../Music/NFS.m3u"
width="300"
height="90"
loop="false"
hidden="false"
autostart="false">
</embed>


</body>
</html>

My code, I'm looking for one that works with IE9
 
Last edited:
I don't think you can embed a playlist (.M3U file). Also, I wouldn't recommend using any sound on your website. Most people hate it, and will try to turn it off immediately, and if they can't, they'll simply leave your site. If you really must put sound on your website, please make sure you also include a way to disable it.

Also, please do not try to code for IE9, or any specific browser for that matter. Code against standards, and your code will work in all modern browsers, and will work for many years to come.
 
I want to embed a sound into my webpage

Cardinal sin #1 of Web Design there n00bie. Don't do it unless you love hearing some music, clicking another link, and having that same music start all over again.

It adds to the overhead of your web page, so it takes longer to download, and irritates the living **** out of users like me, with sound on busy streaming and blam "CHICKA WOOB WOOB WOOB" at 3am in the morning waking up the family... *I will never revisit your site and probably find you and castrate you*

;)
 
Cardinal sin #1 of Web Design there n00bie. Don't do it unless you love hearing some music, clicking another link, and having that same music start all over again.

It adds to the overhead of your web page, so it takes longer to download, and irritates the living **** out of users like me, with sound on busy streaming and blam "CHICKA WOOB WOOB WOOB" at 3am in the morning waking up the family... *I will never revisit your site and probably find you and castrate you*

;)

Hahaha Lol'd hard at the last line.

Nah it's not a webpage that I don't intend of putting up, it's just for a school project that I'm doing :)
 
Hey guys, so I have another problem. I want to embed a sound into my webpage though every code I try it doesn't work.


this is the one I'm using...
Thanks in advanced



My code, I'm looking for one that works with IE9

The reason it doesn't work is because the embed tag isn't actually a W3C standard but works in all common browsers but IE.

This should work in IE 9
<object type="audio/x-mpeg" data="fileName.mp3" width="200" height="16" autoplay="false">

<param name="src" value="fileName.mp3" />
<param name="controller" value="true" />
<param name="autoplay" value="false" />
<param name="autostart" value="0" />

</object>
include your embed tag after the last param for it to work in IE and other browsers

Or if you want to use html5

<audio controls="controls">
<source src="song.mp3" type="audio/mp3" />
Your browser does not support the audio tag.
</audio>
but then change your doctype to the Html5 one <!DOCTYPE HTML>
 
The reason it doesn't work is because the embed tag isn't actually a W3C standard but works in all common browsers but IE.

This should work in IE 9

include your embed tag after the last param for it to work in IE and other browsers

Or if you want to use html5


but then change your doctype to the Html5 one <!DOCTYPE HTML>

Thanks SomeoneEls this one finally worked. Thanks to everyone else who tried to help :)
 
Top
Sign up to the MyBroadband newsletter
X