What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Website coding tutorial websites

Pages: (6): « First « 1 2 3 4 [ 5 ] 6 » Last »
Website coding tutorial websites
Author: Message:
DJKAL
Senior Member
****

Avatar

Posts: 800
Reputation: 14
33 / Male / –
Joined: Oct 2005
O.P. RE: Website coding tutorial websites
mabye im wrong in my outlook on this bit - but:
quote:
Originally posted by raceprouk
Remove all the <br />s from around the image
their there to mvoe the text down away from the image,
quote:
Originally posted by raceprouk
- Swap the h1 and h2
thats like that to have "a heading" - 2347ATC (Porthcawl)
but the h1 is there to show the page information
quote:
Originally posted by raceprouk
Use CSS to set the image to 'float', with some positioning attributes to make it float in the right place (you may want to look at <div> tags for this)

ummmm... il have to look into doing that 1
"You don't sleep, you defragment!"
03-12-2006 05:23 PM
Profile E-Mail PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Website coding tutorial websites
<h1> is meant to be the page title, <h2> a subtitle. There's a reason there's 6 different heading tags ;)
As for the image: CSS margin-top ;)
[Image: spartaafk.png]
03-12-2006 11:46 PM
Profile PM Web Find Quote Report
DJKAL
Senior Member
****

Avatar

Posts: 800
Reputation: 14
33 / Male / –
Joined: Oct 2005
O.P. RE: Website coding tutorial websites
quote:
Originally posted by raceprouk
meant to be

key words - doesnt have to be tha way though :P

why do i need to add a top maring for the image?
"You don't sleep, you defragment!"
03-12-2006 11:48 PM
Profile E-Mail PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Website coding tutorial websites
Adding a margin-top to the image will allow you pixel-fine control of the image location. In fact, since you have two images, assign an ID to each one, then use the '#id' selector to set the margin CSS properties.
Example:
<img src="logo.gif" alt="Logo" id="Logo"/>
with CSS
#Logo {
margin-top: 25px;
}

This post was edited on 03-13-2006 at 12:01 AM by RaceProUK.
[Image: spartaafk.png]
03-13-2006 12:00 AM
Profile PM Web Find Quote Report
DJKAL
Senior Member
****

Avatar

Posts: 800
Reputation: 14
33 / Male / –
Joined: Oct 2005
O.P. RE: Website coding tutorial websites
ok, :)
can the ID be anything?

but this doesnt make the links able to move up the float next to the logo image whilst keeping that in the center
"You don't sleep, you defragment!"
03-13-2006 12:09 AM
Profile E-Mail PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Website coding tutorial websites
I know it doesn't make the image float: I only told you how to position the top :P
To get the 'floating', try this: wrap the <ul> in a div, wrap that <div> and the <img> in another div, and set the inner <div> to 'float: left;'. Scrap that: it doesn't want to work. Just experiment ;)

This post was edited on 03-13-2006 at 12:17 AM by RaceProUK.
[Image: spartaafk.png]
03-13-2006 12:13 AM
Profile PM Web Find Quote Report
DJKAL
Senior Member
****

Avatar

Posts: 800
Reputation: 14
33 / Male / –
Joined: Oct 2005
O.P. RE: Website coding tutorial websites
uuuuuhhhoooooooooohhhhhh :cheesy:
ready for my major screw up.....
code:
div.two {float: left}

code:

<div class="two"><img src="2347atc.gif" alt="2347ATC logo" />
                <br />
                <br />
<div><ul>

LIST HERE


</ul></div></div>



is that right? :$

andout of curiosity - what does <div> do?:$:'(
"You don't sleep, you defragment!"
03-13-2006 12:22 AM
Profile E-Mail PM Web Find Quote Report
Jhrono
Veteran Member
*****


Posts: 1791
Reputation: 25
32 / Male / Flag
Joined: Jun 2004
RE: Website coding tutorial websites
http://www.google.com/search?sitesearch=www.w3schools.com&as_q=div
03-13-2006 12:24 AM
Profile E-Mail PM Find Quote Report
DJKAL
Senior Member
****

Avatar

Posts: 800
Reputation: 14
33 / Male / –
Joined: Oct 2005
O.P. RE: Website coding tutorial websites
so - the <div> can be used to customise paragraphs and headinhs/= or links differently whiklst only coding it once :cheesy:

i think *-)
"You don't sleep, you defragment!"
03-13-2006 11:22 PM
Profile E-Mail PM Web Find Quote Report
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
34 / Male / –
Joined: Jun 2004
RE: Website coding tutorial websites
quote:
Originally posted by DJKAL
so - the <div> can be used to customise paragraphs and headinhs/= or links differently whiklst only coding it once :cheesy:

i think *-)
No, thats what classes are for :dodgy:

Div's act as containers for elements, so you can group them together, which is why they are used so often in modern webdesign, as they allow the coder to group certain elements and position them. Take a look at most div based webdesigns, divs are used to contain the header, and used to seperate multiple columns.

However if you just want to apply the same style to multiple elements you can use the class attribute of the element. See the class selector section of the css syntax page on w3schools.
03-14-2006 12:11 AM
Profile PM Find Quote Report
Pages: (6): « First « 1 2 3 4 [ 5 ] 6 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On