Last edited by darkgoku on October 10th 2014, 1:51 am; edited 1 time in total
3 posters
homepage problem
darkgoku- Forumember
- Posts : 326
Reputation : 3
Language : English
- Post n°1
homepage problem
imma making a homepage for the forum im admin on and i wanna know if its possible for me to link a css file with html file
Last edited by darkgoku on October 10th 2014, 1:51 am; edited 1 time in total
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°2
Re: homepage problem
Hello darkgoku,
Wherever HTML formats you can write :
Replace stylesheet_ref by your external sheet.
Wherever HTML formats you can write :
- Code:
<link rel="stylesheet" href="stylesheet_ref" type="text/css">
Replace stylesheet_ref by your external sheet.
darkgoku- Forumember
- Posts : 326
Reputation : 3
Language : English
- Post n°3
Re: homepage problem
can u give me and example of this working
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°4
Re: homepage problem
It wont work unless you link to your external stylesheet..
If you don't have an external sheet to link to, then you can write an inline sheet :
Again, it can go anywhere HTML formats.
If you don't have an external sheet to link to, then you can write an inline sheet :
- Code:
<style type="text/css">
/* Style rules */
</style>
Again, it can go anywhere HTML formats.
darkgoku- Forumember
- Posts : 326
Reputation : 3
Language : English
- Post n°5
Re: homepage problem
but how would i edit the css or add one
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°6
Re: homepage problem
You would add your rule to the inline sheet :
- Code:
<style type="text/css">
/* Style rules */
.selector { color:red }
.styleSomething {
background:yellow;
font-style:italic;
color:blue;
}
</style>
darkgoku- Forumember
- Posts : 326
Reputation : 3
Language : English
- Post n°7
Re: homepage problem
i;; try this when i get home and ill update this if it doesnt work for me
darkgoku- Forumember
- Posts : 326
Reputation : 3
Language : English
- Post n°8
Re: homepage problem
how do i make like a border around a word like forum or portal
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°9
Re: homepage problem
Create an element :
add some text to that element :
add a class to the element :
add a CSS rule to your inline sheet :
- Code:
<span></span>
add some text to that element :
- Code:
<span>My texte</span>
add a class to the element :
- Code:
<span class="myElement">My texte</span>
add a CSS rule to your inline sheet :
- Code:
.myElement { border:1px solid #f00 }
darkgoku- Forumember
- Posts : 326
Reputation : 3
Language : English
- Post n°10
Re: homepage problem
thank you this helped alot
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°11
Re: homepage problem
You're welcome.
Is this solved ?
Is this solved ?
darkgoku- Forumember
- Posts : 326
Reputation : 3
Language : English
- Post n°12
Re: homepage problem
um what do i put for the element
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°13
Re: homepage problem
Here's a list of HTML tags(or elements) that you can use :
http://www.w3schools.com/tags/default.asp
It can be like the tag in my example. <span> is inline and doesn't mess the layout up, unless you make major changes in the CSS.
http://www.w3schools.com/tags/default.asp
It can be like the tag in my example. <span> is inline and doesn't mess the layout up, unless you make major changes in the CSS.
darkgoku- Forumember
- Posts : 326
Reputation : 3
Language : English
- Post n°14
Re: homepage problem
do i put the inline style sheet inside the html code or somewhere else
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°15
Re: homepage problem
Yes, you can place the inline style where you're writing HTML. Make sure that it is before all your elements that you're styling. This ensures that the style is ready before the HTML elements.
Example :
Example :
- Code:
<style type="text/css">
.redText { color:red; }
</style>
Apples are <span class="redText">red</span>.
darkgoku- Forumember
- Posts : 326
Reputation : 3
Language : English
- Post n°16
Re: homepage problem
is it possible if i give u the code i have can u put a inline sheet in it then send it back and ill edit it
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°17
Re: homepage problem
Post it here, or send it by PM. Whatever you're more comfortable with..
darkgoku- Forumember
- Posts : 326
Reputation : 3
Language : English
- Post n°18
Re: homepage problem
how do i make a text goto a link with the code u gave as a example
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°19
Re: homepage problem
You can use the anchor tag : <a>
http://www.w3schools.com/tags/tag_a.asp
example :
The above word links to the forum. href being the URL which the user is referred to, and "Forum" being the textual content.
http://www.w3schools.com/tags/tag_a.asp
example :
- Code:
<a href="/forum">Forum</a>
The above word links to the forum. href being the URL which the user is referred to, and "Forum" being the textual content.
darkgoku- Forumember
- Posts : 326
Reputation : 3
Language : English
- Post n°20
Re: homepage problem
how do i put a link with t <a> and <span> on the same line
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°21
Re: homepage problem
You can place tags inside tags, for example :
Minified :
This website does have a tutorial on HTML for beginners, if you haven't read it yet. It will explain all that you need to know : http://www.w3schools.com/html/
- Code:
<a href="/forum">
 <span>
  My text
 </span>
</a>
Minified :
- Code:
<a href="/forum"><span>My text</span></a>
This website does have a tutorial on HTML for beginners, if you haven't read it yet. It will explain all that you need to know : http://www.w3schools.com/html/
darkgoku- Forumember
- Posts : 326
Reputation : 3
Language : English
- Post n°22
Re: homepage problem
how would i make the navbars like this http://www.forumotionpromotion.com/ the home and other buttons can u send me a code like that
darkgoku- Forumember
- Posts : 326
Reputation : 3
Language : English
- Post n°23
Re: homepage problem
how do i make home,forum,updates under thepicture at the top and in the center
Last edited by darkgoku on October 9th 2014, 6:39 am; edited 1 time in total
darkgoku- Forumember
- Posts : 326
Reputation : 3
Language : English
- Post n°24
Re: homepage problem
how do i make home,forum,updates under thepicture at the top and in the center
SLGray- Administrator
- Posts : 51554
Reputation : 3523
Language : English
Location : United States
- Post n°25
Re: homepage problem
Please use the edit button.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
darkgoku- Forumember
- Posts : 326
Reputation : 3
Language : English
- Post n°26
Re: homepage problem
i edited it can u plz remove the double post
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°27
Re: homepage problem
It needs to be after the image in the document. You can use either a break <br> or <div> tag to add elements onto a new line. If you're using a <div> tag you can add the text-align property to it to align the content within.darkgoku wrote:how do i make home,forum,updates under thepicture at the top and in the center
darkgoku- Forumember
- Posts : 326
Reputation : 3
Language : English
- Post n°28
Re: homepage problem
well thnx
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°29
Re: homepage problem
You're welcome
Topic archived
Topic archived