ga-wdi-exercises / project2

[project]
1 stars 30 forks source link

problem moving elements to the middle of screen #852

Closed malrese1 closed 7 years ago

malrese1 commented 7 years ago

when trying to move any text background video stops working and can not find a way to make background video transparent.

amaseda commented 7 years ago

Can you elaborate on this problem? Some things to cover...

Please reference this link for tips on what information to include in an issue: https://github.com/ga-wdi-exercises/project2#asking-for-help

malrese1 commented 7 years ago

when i try to center the text the video breaks, i have a video for the background and when i edit anything the video stops working

AndyWhitley commented 7 years ago

Post a code snippet of the code you are using to center the text

AndyWhitley commented 7 years ago

and a code snippet of the code in your .erb file for the view with the text and video

malrese1 commented 7 years ago

i just put

h2{ font-family: cursive; color: red; text-align: center; }

AndyWhitley commented 7 years ago

and are you getting a rails error message or just the page doesn't look right?

malrese1 commented 7 years ago

just the page is not right

AndyWhitley commented 7 years ago

could you paste all of your .html.erb file here that the video and text is on

malrese1 commented 7 years ago
<!DOCTYPE html>
<html>
<head>
  <title>GOOD MEAL</title>
  <%= csrf_meta_tags %>

  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
</head>

<body>
  <%= video_tag "awesome Sony ultra hd food 4K Demo video 2016", autoplay: :autoplay, loop: :loop, mute: :mute, class: "video" %>
  <main>
    <p class="notice"><%= notice %></p>
    <p class="alert"><%= alert %></p>
    <!-- <%= image_tag('scribble.png') %>
    <%= link_to "Sign Up", new_user_registration_path %> -->

    <% if !current_user %>
          <%= link_to "Sign Up", new_user_registration_path %>
          <%= link_to "Sign In", new_user_session_path %>
    <% end %>
    <%= link_to "Sign Out", destroy_user_session_path, :method => :delete %>
AndyWhitley commented 7 years ago

Not sure if this is the problem, but you cannot comment out code using in .erb files. You have to put a # on each line you want commented out. (I would recommend not commenting out code in your .erb files). Try removing that commented out line and see if that fixes it.

Also, I don't see the text you are trying to center here in your .erb file (as in the h2 element you reference in your .css file).

superbuggy commented 7 years ago

for example <%# erb comment %>