RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Web Design.

0 Members and 1 Guest are viewing this topic.

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
alright, i'm starting to get a pretty good view on how to do the css style sheets for a page. I am look very closely to what silverline did and he did everything very clean and noticeable.

www.havok.esmartdesign.com

 its not final or anything I just wanted to fool around.

now to the PHP part of it?

also I put eveything on one page because when i linked a new page to the css it was still the same LONG ass body height, am I supposed to name each body of each page it's div name?

but yeah we can move on :D
(I will be going over some of my other designs and attempting to make a css style sheet for them.)
Watch out for: HaloOfTheSun

*
Resident Cloud
Rep:
Level 91
if you give a height that looks good when theres little content the div will automatically resize if theres more content than can fit. well at least mine do :p

the php part of it depends on what you need to do with php

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?

Quote
Plus, try using PHP to include other pages rather than iFrames, which make it sucky :p

but now I see I don't need to do that correct?
Watch out for: HaloOfTheSun

*
( ´ิ(ꈊ) ´ิ) ((≡^⚲͜^≡)) (ી(΄◞ิ౪◟ิ‵)ʃ)
Rep:
Level 102
(っ˘ڡ˘ς) ʕ•̼͛͡•ʕ-̺͛͡•ʔ•̮͛͡•ʔ (*ꆤ.̫ꆤ*)
2014 Avast Ye Merry Pirate!2013 Avast Ye Merry Pirate Award2012 Avast Ye Merry Pirate AwardFor frequently finding and reporting spam and spam bots2011 Avast Ye Merry Pirate2011 Most Unsung Member2010 Avast Ye Merry Pirate Award
http://2drpg.com/site.zip

Get that and have a look around in it. I used basic php includes for common stuff like the header / footer etc :)
bringing sexy back

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
Thanks for that. When I get home on Monday I'll take my time to look at it.
Watch out for: HaloOfTheSun

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
:(
so I can sorta see what you had done, but when I try I can't execute it correctly.  you have:
Header.php (the main layout)
Footer.php (a bottom div with the name Footer which I assume is where the content is displayed)
Pages.php (all linked to header and footer and open in div footer in footer.php...I think.)

I am trying to do this with a main content box, and I always get stuck. I undid a lot of stuff to where I started and attached it here.
I cant get the index page to open inside in the Content div. (i undid a lot so there is no content.php or anything like that.)

i'm trying to make a rather large site in the near future so when I saw how you had done it in your attachment I went WOW! its simpler looking (after you get it to work) to make a new page and add it.

if you could help me out that would be awesome.

EDIT Never mind, I got everything to work....for now.  :D
« Last Edit: May 28, 2007, 10:39:16 PM by Nouman »
Watch out for: HaloOfTheSun

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
next problem.

I need a drop down menu, actually not so much a drop down since my menu is on the left and not a top menu or bottom.

I have found sooo many on the web, some harder then the others so I decided instead of wasting time to ask you guys what is the best one.

thanks.
Watch out for: HaloOfTheSun

*
Resident Cloud
Rep:
Level 91
the simplest menu is just a bullet pointed list of links eg.

  • link1
  • link2 etc.

then applying css you can make it do all sorts of things. My site uses this here

the site linked will have loads of others like it that may suit you.

*
( ´ิ(ꈊ) ´ิ) ((≡^⚲͜^≡)) (ી(΄◞ิ౪◟ิ‵)ʃ)
Rep:
Level 102
(っ˘ڡ˘ς) ʕ•̼͛͡•ʕ-̺͛͡•ʔ•̮͛͡•ʔ (*ꆤ.̫ꆤ*)
2014 Avast Ye Merry Pirate!2013 Avast Ye Merry Pirate Award2012 Avast Ye Merry Pirate AwardFor frequently finding and reporting spam and spam bots2011 Avast Ye Merry Pirate2011 Most Unsung Member2010 Avast Ye Merry Pirate Award
On my own site, I'm using this 100% CSS dropdown menu. It works perfectly, and it's cross-browser too.

If an unsupporting (really old) browser sees it, it'll just see a nice kind of link tree.
bringing sexy back

********
Rep:
Level 96
2010 Most Attractive Male Member2010 Best Musician
I tried using divs instead of frames, once. It sucked because the website would look good in one browser, and not in another. So I just stuck with frames, rather than single out potential visitors.

:tinysmile::tinysmile:

*
( ´ิ(ꈊ) ´ิ) ((≡^⚲͜^≡)) (ી(΄◞ิ౪◟ิ‵)ʃ)
Rep:
Level 102
(っ˘ڡ˘ς) ʕ•̼͛͡•ʕ-̺͛͡•ʔ•̮͛͡•ʔ (*ꆤ.̫ꆤ*)
2014 Avast Ye Merry Pirate!2013 Avast Ye Merry Pirate Award2012 Avast Ye Merry Pirate AwardFor frequently finding and reporting spam and spam bots2011 Avast Ye Merry Pirate2011 Most Unsung Member2010 Avast Ye Merry Pirate Award
Spoiler for lets see how well SMF colours this:
<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if 
lte IE 6]><table><tr><td><![endif]-->
<!--[if 
lte IE 6]></td></tr></table></a><![endif]-->
</
li>

<
li><a href="#">Site Related<!--[if IE 7]><!--></a><!--<![endif]-->

<!--[if 
lte IE 6]><table><tr><td><![endif]-->
	
<
ul>
	
<
li><a href="http://slyph.org/blog/" title="Short Story Blog">SlyphBlog</a></li>
	
<
li><a href="http://slyph.org/history/" title="A History Of Short Story">Site History</a></li>

	
<
li><a href="http://slyph.org/artists/" title="Information on the artists at Short Story">Artist Info</a></li>
	
<
li><a href="http://slyph.org/contact/" title="How you can get in touch with us">Contact Information</a></li>
    <
li><a href="http://slyph.org/about/" title="About Short Story">About</a></li>
    <
li><a href="http://slyph.org/legal/" title="Legal Information">Legal Info</a></li>
    <
li><a href="http://slyph.org/privacy/" title="Privacy Statement">Privacy Statement</a></li>
	

	
</
ul>
<!--[if 
lte IE 6]></td></tr></table></a><![endif]-->

</
li>
<
li><a href="http://slyph.org/music/" title="Music Center">Music<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if 
lte IE 6]><table><tr><td><![endif]-->
	
<
ul>
	
<
li><a href="http://slyph.org/music/collab/" title="Collaborative">Collaborations</a></li>
	
<
li><class="drop" href="http://slyph.org/music/silverline/" title="Silverline&#39;s Music">Silverline<!--[if IE 7]><!--></a><!--<![endif]-->

<!--[if 
lte IE 6]><table><tr><td><![endif]-->
	
	
<
ul>

	
	
	
<
li><a href="http://slyph.org/music/silverline/sx1/" title="Latest Work by Silverline">-S-X-1-</a></li>
	
	
	
<
li><a href="http://slyph.org/music/silverline/misc/" title="Miscellaneous">Misc Peices</a></li>
	
	
	
<
li><a href="http://slyph.org/music/silverline/blastermaster/" title="Blaster Master Symphony">Blaster Master Symphony</a></li>
	
	
	
<
li><a href="http://slyph.org/music/silverline/crescent/" title="Project Crescent Discarded Tracks">Project Crescent</a></li>
	
	
	
<
li><a href="http://slyph.org/music/silverline/rokmid/" title="Rockin&#39; MIDI Collection">Rockin&#39; MIDI Collection</a></li>
	
	
	
<
li><a href="http://slyph.org/music/silverline/silverperfect/" title="Silverperfect">Silverperfect</a></li>

	
	
	
<
li><a href="http://slyph.org/music/silverline/silverperfect2/" title="Silverperfect II">Silverperfect II</a></li>
	
	
	
<
li><a href="http://slyph.org/music/silverline/animalcrossing/" title="Animal Crossing Remixes and Arrangements">Animal Crossing ReWorked</a></li>
	
	
</
ul>
<!--[if 
lte IE 6]></td></tr></table></a><![endif]-->
	
</
li>
	
<
li><class="drop" href="http://slyph.org/music/halo/" title="HaloOfTheSun&#39;s Music">HaloOfTheSun<!--[if IE 7]><!--></a><!--<![endif]-->

<!--[if 
lte IE 6]><table><tr><td><![endif]-->
	
	
<
ul>

	
	
    <!-- <
li><a href="http://slyph.org/music/halo/latest/" title="Latest Work By HaloOfTheSun">Newest Work/Projects</a></li> -->
	
	
	
<
li><a href="http://slyph.org/music/halo/symphony1/" title="Symphony No1 in D Minor">Symphony No1 in D Minor</a></li>
	
	
	
<
li><a href="http://slyph.org/music/halo/ffaos/" title="Final Fantasy And Other Stories">Final Fantasy And Other Stories</a></li>
	
	
	
<
li><a href="http://slyph.org/music/halo/ffaosr/" title="Re-Mastered Final Fantasy And Other Stories">Final Fantasy And Other Stories Re-Mastered</a></li>
	
	
	
<
li><a href="http://slyph.org/music/halo/ffaos2/" title="Final Fantasy And Other Stories II">Final Fantasy And Other Stories II</a></li>
	
	
	
<
li><a href="http://slyph.org/music/halo/ffaos3/" title="Final Fantasy And Other Stories III">Final Fantasy And Other Stories III</a></li>

	
	
	
<
li><a href="http://slyph.org/music/halo/hotsoms/" title="HOTSOMS Soundtrack">HOTSOMS/HOTSOAS</a></li>
	
	
	
<
li><a href="http://slyph.org/music/halo/doom/" title="DooM - The Darkening">DooM The Darkening</a></li>
	
	
	
<
li><a href="http://slyph.org/music/halo/dream/" title="Dreamscapes And Memories">Dreamscapes And Memories</a></li>
	
	
</
ul>
<!--[if 
lte IE 6]></td></tr></table></a><![endif]-->
	
</
li>
	
<
li><class="drop" href="http://slyph.org/music/kylelandry/" title="KylePiano&#39;s/Kyle556&#39;s/Kyle Landry&#39;s Music and Video">KyleLandry/Kyle556<!--[if IE 7]><!--></a><!--<![endif]-->

<!--[if 
lte IE 6]><table><tr><td><![endif]-->
	
	
<
ul>
	
	
	
<
li><a href="http://slyph.org/music/kylelandry/audio/" title="Kylelandry&#39;s Arrangements">Audio Recordings</a></li>
	
	
	
<
li><a href="http://slyph.org/music/kylelandry/video/" title="Kylelandry&#39;s Video Performances">Video Performances</a></li>
	
	
</
ul>
<!--[if 
lte IE 6]></td></tr></table></a><![endif]-->
	
</
li>
	
<
li><class="drop" href="http://slyph.org/music/holk/" title="Holkeye&#39;s Music">Holkeye<!--[if IE 7]><!--></a><!--<![endif]-->

<!--[if 
lte IE 6]><table><tr><td><![endif]-->
	
	
<
ul>
	
	
	
<
li><a href="http://slyph.org/music/holk/" title="Works to appear soon">(Coming soon!)</a></li>
	
	
</
ul>
<!--[if 
lte IE 6]></td></tr></table></a><![endif]-->
	
</
li>
	
</
ul>
<!--[if 
lte IE 6]></td></tr></table></a><![endif]-->
</
li>
<
li><a href="#" title="Other miscellaneous content">Other<!--[if IE 7]><!--></a><!--<![endif]-->

<!--[if 
lte IE 6]><table><tr><td><![endif]-->
	
<
ul>
	
<
li><class="drop" href="http://slyph.org/articles/" title="Articles">Articles<!--[if IE 7]><!--></a><!--<![endif]-->

<!--[if 
lte IE 6]><table><tr><td><![endif]-->
	
	
<
ul>
	
	
	
<
li><a href="http://slyph.org/articles/tabitguide/" title="Guide on using TabIt">TabIt Guide</a></li>
	
	
</
ul>
<!--[if 
lte IE 6]></td></tr></table></a><![endif]-->
	
</
li>

	
<
li><class="drop" href="http://slyph.org/resources/" title="Various Resources">Resources<!--[if IE 7]><!--></a><!--<![endif]-->

<!--[if 
lte IE 6]><table><tr><td><![endif]-->
	
	
<
ul>
	
	
	
<
li><a href="http://slyph.org/resources/samples/" title="Soundfonts & Sample sets">Soundfonts Samples</a></li>
	
	
</
ul>
<!--[if 
lte IE 6]></td></tr></table></a><![endif]-->
	
</
li>
	
</
ul>

<!--[if 
lte IE 6]></td></tr></table></a><![endif]-->
</
li>
<
li><a href="http://slyph.org/links/">Links<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if 
lte IE 6]><table><tr><td><![endif]-->
	
<
ul>

	
<
li><a href="http://slyph.org/links/exchange/" title="Exchange Links with Short Story">Exchange Links</a></li>
	
<
li><a href="http://slyph.org/links/linkto/" title="Link to our site with banners/buttons">Link To Us</a></li>
	
<
li><a href="http://slyph.org/links/affiliate/" title="Affiliate with Short Story">Become An Affiliate</a></li>

	
</
ul>
<!--[if 
lte IE 6]></td></tr></table></a><![endif]-->

[edit] LOL ok that didn't work so good. But all the "<!--[if lte IE 6]>" and "<!--[if IE 7]><!--></a><!--<![endif]-->" are browser specific bits to make sure it looks / functions right in those browsers. Basically when seen by IE6, the whole menu is built with tables, since IE doesn't respect :hover CSS on anything but anchor elements >:O. Firefox and opera etc just get a normal listed menu that is hidden and shows when hovered.

Really old browser aren't left in the dark either, they just get a normal listed menu all visible from the start which pushes the rest of the site down. (or it should ><).

Also stuff in the CSS such as this:

Spoiler for:
/* a hack so that IE5.5 faulty box model is corrected */
* html .menu a, * html .menu a:visited {
width:150px;
w\idth:139px;
}

IE (IE6 especially) sucks hard with divs and if you're not careful it gets terrible fast and really annoying ;9
« Last Edit: May 30, 2007, 09:16:24 PM by Paul »
bringing sexy back

********
Rep:
Level 96
2010 Most Attractive Male Member2010 Best Musician
I remember using that little //\\//\/\/\/ hack cheat thing, but it still gave me trouble. :(

Oh well, I haven't worked on my webpage in like 2 years anyway LOL

:tinysmile::tinysmile:

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
I don't know if that one will work for the way my navy bar is set up. but anyways I'm stuck so I wont go on to the navy bar until I get out of this hole.

attached image shows my problem. I wanted that div with the main text to be in the center and not to push everything down.
if you can fix it or point out the problem it would be great :D

« Last Edit: June 01, 2007, 11:29:20 PM by Nouman »
Watch out for: HaloOfTheSun

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
Watch out for: HaloOfTheSun

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
alright, I got it too work after hours of fooling around with the code and such.
no questions....for now xD
Watch out for: HaloOfTheSun

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
alright, I want to have a layout like this for a part in a page:

Choose a sub section:
<SPACE, like you were to press ENTER>
TEXT < click the text, the text is the link, but is not underlined with the blue hyperlink line
BLAH BLAH BLAH text under the link
---------------------------------solid line-------------------------
<SPACE, like you were to press ENTER>
TEXT < click the text, the text is the link, but is not underlined with the blue hyperlink line
BLAH BLAH BLAH text under the link
---------------------------------solid line-------------------------

I do this but can't get it to work, and when I apply the <br> the links are removed.

I've tried many attempts this was my last one:

Code: [Select]
<p>Please select a sub destination:</p>
<p><br>
  <a STYLE="text-decoration:none" href="aboutscv.php">About SCV</a></p>
<p> A brief overview of the county of Santa Calrita.</p>
<p><hr><br>
  <a STYLE="text-decoration:none" href="aboutwebsite.php">About this site</a></p>
<p> Detailed info about everything on this site. Explains navigation options, special icons, and much more.</p>
<p><hr></p>

the line doesn't show, and the links aren't links, but spaces are good.

thanks~
Watch out for: HaloOfTheSun

*
( ´ิ(ꈊ) ´ิ) ((≡^⚲͜^≡)) (ી(΄◞ิ౪◟ิ‵)ʃ)
Rep:
Level 102
(っ˘ڡ˘ς) ʕ•̼͛͡•ʕ-̺͛͡•ʔ•̮͛͡•ʔ (*ꆤ.̫ꆤ*)
2014 Avast Ye Merry Pirate!2013 Avast Ye Merry Pirate Award2012 Avast Ye Merry Pirate AwardFor frequently finding and reporting spam and spam bots2011 Avast Ye Merry Pirate2011 Most Unsung Member2010 Avast Ye Merry Pirate Award

Please select a sub destination:


 

About SCV
A brief overview of the county of Santa Calrita.



About this site
Detailed info about everything on this site. Explains navigation options, special icons, and much more.




Code: [Select]
<p>Please select a sub destination:</p>
<br />

<p><a STYLE="text-decoration:none" href="aboutscv.php">About SCV</a><br />
A brief overview of the county of Santa Calrita.</p>

<hr /><br />

<p><a STYLE="text-decoration:none" href="aboutwebsite.php">About this site</a><br />
Detailed info about everything on this site. Explains navigation options, special icons, and much more.</p>
<hr /><br />

You'd be better off maybe making a CSS class:

Code: [Select]
.contentlink {
text-decoration: none;
}

Then having

Code: [Select]
<a href="aboutwebsite.php" class="contentlink">About this site</a>

 :)

[edit] Probably the best way to do it would to be to base if off the parent, so say if your content div had an ID of "content", you could do

Code: [Select]
#content a {
text-decoration: none;
}

Then you could just do normal links like this:

Code: [Select]
<a href="aboutwebsite.php">About this site</a>

And it'd automatically be styled since it's inside the #content div  :)
« Last Edit: June 02, 2007, 04:32:21 PM by Paul »
bringing sexy back

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
this is odd...
if I place your code in instead of the old one:

FF: Links don't work, and no line is shown.
Opera: Links work no line.
IE: Links work and line (well I can't tell 100% since in IE my page is like WTF)

if I place your code under mine, leaving in both codes:

FF: Links to second part of it (your part) work, still no line
Opera: Links still work, no lines
IE, links and lines page still fucked xD

i'm not too sure where I hit this mistake, it's the same code you used in your reply and I can view it perfect but one when I view my own page I can't.

I uploaded the file data again, any help would be great since I can't figure this one out for hours.
« Last Edit: June 02, 2007, 11:13:56 PM by Nouman »
Watch out for: HaloOfTheSun

*
Resident Cloud
Rep:
Level 91
silver set the link to have to decoration:
Code: [Select]
<a STYLE="text-decoration:none" href="aboutscv.php">About SCV</a>

remove the style bit and youll have your line

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
still no dice.
anyways it's about fine for now in FF, but in IE its total shit. I went ant fixed it as much as possible but hit this stupid div that won't allow divs next to it.
I have included a rar with both a FF and IE folder. the IE is the one with the div problem, and the FF is the one with the ff line issue.

another thing, when I get it to work in FF and IE...how do I put it into one site xD (I am guessing the IF
IE code)

anyways this would be greatly appreciated since i'm stuck major on this. I might figure it out on the div (probally not when I think about it) but the line problem in FF and the problem with making it into one site that works in IE and FF.

thanks major for any help!
Watch out for: HaloOfTheSun

*
Rep:
Level 92
The Return of Mandy
Heres where I come in. The CSS provided by Silverline is great easy code. You should begin to see how the design of a layout can become more dynamic through the uses of Cascading Style Sheets (CSS). The great thing about CSS as well is you can switch style sheets and completely redesign a website using the same basic HTML page. Case and point check out [link=http://www.csszengarden.com/]CSS Zen Garden[/link].

As far as the PHP goes a great way to include content within the layout is to insert this code within the content section of your index page.
Code: [Select]
<?php
switch($_GET['page']) { default: include('main.html');
break; case "nextpage": include('whateverthenextpageis.html');
break; case "anotherpage": include('mynextpage.php');
break; case "links": include('document/links.html');
}
?>

When someone clicks the link index.php?page=nextpage the script includes the page "whateverthenextpageis.html" within your document. If a link is mistyped or none is provided the script by default is set to include main.html. You can check this script out in action at www.crankeye.com. I hope this helps.

Where there are no gold stars, demerits, or infractions. <3

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
many thanks for that.  ;D
Watch out for: HaloOfTheSun

*
Resident Cloud
Rep:
Level 91
you can also use <!--[if lte IE 6]>code<![endif]--> to insert bits of html that different browsers use.

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
0 downloads :(

anyways how can I add a search bar to my website? I've been through google and such and there are alot of free ones/expensive ones.
Watch out for: HaloOfTheSun

*
Resident Cloud
Rep:
Level 91
och thats complicated