HTML - Some Help With @font-face And Floating
This might be the first of a number of posts that I'll need to make as I'm not a web coder by any means but I do at least understand the basics. I'm developing a fairly simple five page website and may come across further problems as I go. Click here to see the main page as it currently stands.
I've got two problems. Firstly and most importantly, how do I get #beercards to line up with the same line as "Your ticket includes"? #beercards is floated to the right, which I thought would take care of everything but apparently not. I don't mind which way I set it up (either in DIVs or just normal text), as long as those titles are in line with each other. Secondly, I added @font-face to the CSS and whilst working on it offline, it worked fine. When I uploaded everything in preparation to making this post, I realised it was no longer working. Can you tell me why this is please? Thanks for the help! Similar TutorialsDoes anyone know of a font face generator that can convert a TTF or OTF font file into the 4 formats (woff, svg, eot, ttf), that's not font squirrel? That site only supports English fonts with a very low file size limit, and can't convert any foreign fonts. Already tried http://onlinefontconverter.com as well, doesn't work either as I waited like an hour then the server simply deleted my uploads without so much as an error pop-up lol, and now the website is not responding. This is for usage in CSS using the @font-face function. Thanks. Okay- I have a table, and I want to change the font face of my text, however- it is not working. I would like to set the font face to Tahoma. Here is my code: HTML Code: <html> <head> <style type="text/css"> thead { color:#fda815; } thead th { padding:1em 1em .5em; border-bottom:1px dotted #757575; font-size:12; text-align:left; } </style> </head> <body> <table width=312px;> <tr><thead> <th>Stuff 1( this should have a dotted border under it) I want this to have font face of TAHOMA</th> </thead> </tr> <tr><font face=tahoma><font color=#fda815><font size=2> <li>Stuff 2(nothing under it)</li> </font></font></font> </tr> <tr><font face=tahoma><font color=#fda815><font size=2> <li>Stuff 3 (nothing under it)</li> </font></font></font> </tr> <tr><font face=tahoma><font color=#fda815><font size=2> <li>Stuff 4(nothing under it)</li> </font></font></font> </tr> <tr><font face=tahoma><font color=#fda815><font size=2> <li>Stuff 5(nothing under it)</li> </font></font></font> </tr> </table> </body></html> As you can see, "STUFF 1" Is the only cell with the dotted under border. I want to change the font of "STUFF 1" but I don't know how... Help! UPDATE: I KNOW HOW TO MAKE THE FONT "TAHOMA", but when I do, all the text becomes Bold! Hello, When I try to set a font in HTML it works, but if I set a rule in my CSS to set the same font, it doesn't. Here are the three things I do (not at the same time of course): <font face="Verdana, Tahoma, Arial, Helvetica"> ... ... ... </font> vs body { font-family: Verdana, Tahoma, Arial, Helvetica; } or even... body { font: Verdana, Tahoma, Arial, Helvetica; } Out of all of those, only the first can change the font in my browser...is this a CSS issue because, somehow, the browser has superiority over CSS, and HTML has superiority over the browser? I would appreciate input. Thanks. Hi everyone, Me again I'm afraid. Hope you had a good Christmas and New Year. I have a question regarding the following page: http://www.dynamic-xchange.com/resources.php I am trying to update it as I have done with the others (http://www.dynamic-xchange.com/index.php) and implement XHTML and CSS but I am having problems floating the divs correctly to get the desired effect as in the page given above. Any help of advice would be very welcome as I am tearing my hair out. Warm regards, Simon Prevous title: (div in div top:0; left:0; = top corner of first div, not page...) Ok, here's the code: HTML Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>DIV DIV</title> <style type="text/css"> <!-- #apDiv1 {position:absolute;top:0;left:0;width:150px;height:150px;z-index:0;background-color:#00F;} #apDiv2 {position:absolute;top:100px;left:100px;width:200px;height:200px;z-index:1;background-color:#F00;} --> </style> </head> <body> <div id="apDiv1"></div> <div id="apDiv2"> </div> </body> </html> Which produces: However, the "problem" is that i would like that result with this variation on the code: HTML Code: <div id="apDiv2"> <div id="apDiv1"></div> </div> But that "unfortunately" returns this result: Which was great when I first did it, (i always thought top:0; left:0; would put a div in the top corner of the page regardless of where it is within the code... so when i tried it in my last project and it used the top corner of the containing div as 0,0 that was exactly what i needed) but in my current project, I really need div1 to go to the top corner of the page, not div2, but still reside inside of div2... is this possible? Hi all, Sure glad I found this site!, I would like to ask for some advice please guys I have a portal that uses a portal stylesheet, the header is a .png image and needs to be 100% width, this loads from a Content Web File Manager, it carries a logo on the left and some corperate colour bands, it appears on every page of the portal, the right side is blank apart from the picture of a search box ( it shipped with the png I will be getting rid of this using PSP) I have created a <div> content </div> and I want this to appear to the right and in front of the header in place of this search box The <div> loads fine on templates (the dynamic content of the portal these are templates that the site use) so I know this works fine, now i want to make it appear on the header itself in place of the picture of the search box that I have erased This is where I am getting stuck - I do want it to be a permanent feature on the header and to the right, what do I need to use in the html code before and after the <div> content </div> ? All help will be greatly appreciated John Hey, Ive seen this done a few times and i was wondering if aqnyone knoew how hard it is or how to achieve it. When the user clicks on a button i want either an image or text to appear next to it. Im sorry i cant find any examples but i have seen it done in places. Thanks, Ben How do I make text appear above lowercase characters? Hello, I've came here because I am really stuck on this one problem... I can't float another DIV right so it's beside another DIV. ( http://www.lentonent.com ) Please could you fix this source code so one div is on the left and one is on the right and they both have a background of middle.png: Code: <html> <head> <style> #middle { width: 900px; background: url(images/middle.png) repeat-y; } #middle-left { width: 580px; padding: 25px; border: 1px solid #000; } #middle-right { width: 200px; padding: 25px; border: 1px solid #000; float: right; } </style> </head> <body> <div id="middle"> <div id="middle-left"> <h1>LEFT SIDE</h1> <p>This text should be on the left hand side. I'm just going to write a little crap now to make this paragraph really long and cool just like a frog standing on a spoon. Yes very random indeed but that's not what the bus shelter said.</p> <h1>LEFT SIDE</h1> <p>This text should be on the left hand side. I'm just going to write a little crap now to make this paragraph really long and cool just like a frog standing on a spoon. Yes very random indeed but that's not what the bus shelter said.</p> </div> <div id="middle-right"> <h1>Test</h1> <p>This is a test.</p> </div> </div> </body> </html> Thankyou very much for your help! can anybody please help with this html document, i need to have all the picturecs in the right places.. i cant seen to figure it out, i will only take a minut for someone who know what to do ! http://peecee.dk/upload/view/174763 Hello, I am trying to create a web page, and, currently, there is text at the top, and text at the bottom displaying copyright information and useful links. I am aiming to have this page fit into one page, without the need for scrolling, with an iframe in the middle. (So the user is not taken away from the page to complete the task). However, I have the text at the top, the iframe set to 78%, and useful links at the bottom. It works in most browsers without needing to scroll, however, when you use the page in IE, you need to scroll to see the very last bit. Is there a way, I could "float" a section at the bottom of the page, so it doesn't disappear? Hi, How can I get my jquery gallery to appear in the center and the columns on the side to auto fit around it? The gallery is currently hanging over the right column. http://elitedonuts.com/float3.html THX! okay guys so i made a theme and here's the out come ( i wont make it appear because its so big ) http://i.imgur.com/LyM41.png but i want to put an i frame on the middle part like this http://i.imgur.com/Fw6fP.png w/ transparency but still the image is still there so it will look like this http://i.imgur.com/CUP1k.png can any one help me with the code? http://i.imgur.com/t9zrr.png i have a iframe code im using to run a scrolling text, im wondering if i can get the iframe to float on the right side of the screen... i tried adding stye="float: right but it didnt work heres the code im using below and you can see a preview of the outcome at http://www.freewebs.com/fallingrain11/test2.htm document.write('<iframe id="datamain" src="'+iframesrc+'" width="165px" height="215px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="1" scrolling="no"; style="float: right></iframe>') http://tinypic.com/r/1t4igj/5 How can I make a floating social media sidebar like this one? Hello please see http://www.view-agency.com/view/Repr...x?Id=243&Cat=2 in all the RepresentedEng.aspx The .main_wrap class floats to the right, although it's inside a class that has same width and margin auto ... anyone ? ? What's even wierder is that on http://www.view-agency.com/view/Cate...Eng.aspx?cat=2 for instance, there is no floating problem although it's supposed to work on same css.... Comment - Don't bother explaning to me that it's not valid and code isn't 100% right because I didn't make it, and it ain't possible to make the site all over. I'm sure there's a way to fix this tiny problem.. Thanks !!!!! Hey everyone. I'm working on a Wordpress template and have a question. I have a div #header and the corresponding CSS defines a background image. All good. What I want to do is put some image/links (i.e. a picture that says HOME that is hyperlinked to the hope page) inside this div. Using simple <a> tags I can achieve this: Code: <a href="www.google.com"><img scr="mypicture"></a> . This naturally puts my picture-link at the top left of the header div. I want this picture-link to be moved to the right maybe 25 pixels, moved down 20 pixels, etc. How can I acheive this? I tried replacing the <a href="www.google.com"><img src="mypicture"></a> with this: Code: <div style=”top: 20px; right: 25px; position: fixed;”><a href=”www.google.com”><img style=”border:0;” src=”mypicture” alt=”home” width=”140″ height=”40″ /></div> I found that on Google and thought it might work, but I have no success. Do I need to use CSS for this? And how exactly would I do that? Can anybody give me a good detailed explanation on how I can go about doing what I want? Help would really be appreciated! Thanks! Hi, first question as a new user so here goes... As part of a website I'm designing I'm trying to create a fairly simple layout with two DIVs, one for an image and one for text, like in the picture below: http://www.eastwood6.co.uk/layout.gif I'm having problems getting the second smaller DIV (the one with the text in) to stay to the right of the first smaller DIV (with the image). I have floated the first DIV to the left, but I found that the text wraps underneath the image when the text is longer than the image. I tried floating the second DIV to the left as well, and this worked fine in IE, but it causes problems in Firefox, namely that the entire second DIV is pushed below the first. I've been messing with this all morning and just cannot solve it, any help would be greatly appreciated! Here's the code I've been playing with: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> <title>Test</title> <style type="text/css"> * { padding: 0; margin: 0; } #one { width:50%; border: 1px solid black; } #two { float: left; border: 1px solid orange; } #three { width: 400px; } </style> </head> <body> <div id="one"> <div id="two">This is the left box</div> <div id="three">This is the right box. Now I just want to see what happens when I type so much text that it flows off the end. This is the right box. Now I just want to see what happens when I type so much text that it flows off the end. This is the right box. Now I just want to see what happens when I type so much text that it flows off the end.</div> </div> <div style="clear: both;"><p> </p></div> </body> </html> Thanks, Pete Hey all, new guy here, working on a page for my work place. I work in a call center and all our support documentation we upload to a web-site so its quickly and easily accessible. My predecessor had a very basic setup designed in MS Word but the site has grown way too big for Word now. Its my baby now and I have been designing it over the past couple months as I have had time, complete re-write yah! in any case, after getting the design and setup down, I moved on to the coding using a mix of Dreamweaver and straight up HTML(how I learned in college). Built a frames version and hated it, so after reviewing all the options I opted to go with SSI for the menu. I built the menu, its simply 2 tables, 1 runs the full width along the top, the other floats left. Here is a screen-cap - company logo and other info blocked off. OK, everything is fine, so far, but the main/index page will have to have a lot of links. We have 1 page for every app. IE. Groupwise as shown. The apps are ordered alphabetically and I will need 2 or 3 columns and will need to be able to jump in and add an app in the middle of the list quick and easy. Simple answer: tables. Not so simple though.... most people resize the IE window down so they can keep working on one thing and read off the page... When I tested resizing the window this happens... *again, info removed* Before a scroll-bar appears, the tables drop down BELOW the side menu table from the SSI file... I have tried everything I can think of to fix this and just cannot get it to work... I tried playing with the side menu table height, (currently set to 100% to fill up remainder of page) and have even tried setting the top menu to a set width so that a scroll bar will appear if you do anything but full screen, even then when too small the tables jump down to below the side menu. I even split the side and top menu to 2 seperate SSI files and it does the same thing(and has a big space between the 2)... Plain text will jump down as well, but only after you make the window too narrow to have a single character next to the menu. Any help would be greatly appreciated. Suggestions on what to try? where to look for an answer? or if I am going about this all wrong.... what I should be trying... Thanks in advance! -Tim Hi, I'm doing a website and for my link i would like drop-down menus at the top but i want it to stay at the top when you scroll. Can anybody point me to these. I have no idea how to do drop-down menus that look good. Take a look at http://www.runehq.com/ and look at the menus at the top. I would like some like that. Help would be great. Thanks. ToshNeox |